【发布时间】:2020-11-18 03:37:36
【问题描述】:
我正在尝试使用FsUnit.Xunit 测试集合是否不包含值。
open FsUnit.Xunit
[<Fact>]
let ``simple test`` () =
let xs = [ 1; 2; 3 ]
xs |> should contain 1
xs |> should not contain 99 // Not real code
我也尝试过使用not'。
我该怎么写?
【问题讨论】: