失敗したテストを含む次のコードがあります。
open Xunit
open FsUnit.Xunit
let rec openOrSenior xs =
match xs with
| head :: tail when fst head >= 55 && snd head >= 7 -> "Senior" :: openOrSenior tail
| head :: tail -> "Open" :: openOrSenior tail
| [] -> []
[<Fact>]
let ``empty input gives empty result``() =
openOrSenior [] |> should equal List.empty
テストは次の一致エラーで失敗します
FsUnit.Xunit+MatchException : タイプ 'FsUnit.Xunit+MatchException' の例外がスローされました。予想: [] に等しい
実際: [] だった