問題タブ [fsunit]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
.net - F# 型の 2 つの同一の期待値を示す FsUnit
もちろん、以下の 2 つのテストは失敗します。しかし、エラー メッセージに同じ期待値が 2 つ表示されるのはなぜでしょうか? 1つだけ表示する方法はありますか?
myTest
戻り値Expected: <B> or <B> But was: <A>
myTest2
戻り値Expected: <{ N = 2 }> or <{ N = 2 }> But was: <{ N = 1 }>
Expected: <B> But was: <A>
代わりにプレーンな NUnit を使用すると、これは期待どおりに機能します (例: )。
もちろん、より複雑な型を扱う場合、これはかなり厄介になります。
Tests.cs:
プロジェクト ファイル: