@@ -7,25 +7,49 @@ open NHamcrest.Core
77type ``be Empty tests`` () =
88 [<TestMethod>] member test.
99 ``empty List should be Empty`` ()=
10- []. IsEmpty |> should be True
10+ [] |> should be Empty
11+
12+ [<TestMethod>] member test.
13+ ``non - empty List should fail to be Empty`` ()=
14+ shouldFail ( fun () -> [ 1 ] |> should be Empty)
1115
1216 [<TestMethod>] member test.
1317 ``non - empty List should not be Empty`` ()=
14- [ 1 ]. IsEmpty |> should not' ( be True)
18+ [ 1 ] |> should not' ( be Empty)
19+
20+ [<TestMethod>] member test.
21+ ``empty List should fail to not be Empty`` ()=
22+ shouldFail ( fun () -> [] |> should not' ( be Empty))
1523
1624 [<TestMethod>] member test.
1725 ``empty Array should be Empty`` ()=
18- [||] |> Array.isEmpty |> should be True
26+ [||] |> should be Empty
27+
28+ [<TestMethod>] member test.
29+ ``non - empty Array should fail to be Empty`` ()=
30+ shouldFail ( fun () -> [| 1 |] |> should be Empty)
1931
2032 [<TestMethod>] member test.
2133 ``non - empty Array should not be Empty`` ()=
22- [| 1 |] |> Array.isEmpty |> should not' ( be True)
34+ [| 1 |] |> should not' ( be Empty)
35+
36+ [<TestMethod>] member test.
37+ ``empty Array should fail to not be Empty`` ()=
38+ shouldFail ( fun () -> [||] |> should not' ( be Empty))
2339
2440 [<TestMethod>] member test.
2541 ``empty Seq should be Empty`` ()=
26- Seq.empty |> Seq.isEmpty |> should be True
42+ Seq.empty |> should be Empty
43+
44+ [<TestMethod>] member test.
45+ ``non - empty Seq should fail to be Empty`` ()=
46+ shouldFail ( fun () -> seq { yield 1 } |> should be Empty)
2747
2848 [<TestMethod>] member test.
2949 ``non - empty Seq should not be Empty`` ()=
30- seq { yield 1 } |> Seq.isEmpty |> should not' ( be True)
50+ seq { yield 1 } |> should not' ( be Empty)
51+
52+ [<TestMethod>] member test.
53+ ``empty Seq should fail to not be Empty`` ()=
54+ shouldFail ( fun () -> Seq.empty |> should not' ( be Empty))
3155
0 commit comments