テストランナーとして NUnit でunquoteを使用しようとしています。テスト ケースはGetting Startedから取得され、NUnit の外部で実行すると期待どおりに動作します。
namespace FsTest.Tests
open NUnit.Framework
open Swensen.Unquote
[<TestFixture>]
module Example =
[<Test>]
let foo() =
test <@ (1+2)/3 = 1 @>
NUnit の下では、次の例外が発生します。
FsTest.Tests.Example.foo: System.MissingMethodException : メソッドが見つかりません: 'System.Tuple
2<Microsoft.FSharp.Collections.FSharpList
1,Microsoft.FSharp.Quotations.FSharpExpr> Internal.reduceFullyAndGetLast(Microsoft.FSharp.Quotations.FSharpExpr)'.
上記のコードに問題があるかどうか、およびそれを機能させる方法を知りたいです。raise
それが助けになるなら、同じように私にとって引用符を外すことは失敗します。