Skip to content

Commit

Permalink
Added failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-tihon committed Oct 30, 2019
1 parent dd35864 commit db41e9f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tests/FsUnit.MsTest.Test/beSupersetOf.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ type ``be supersetOf tests`` ()=

[<TestMethod>] member test.
``1 to 10 should be superset of 1 to 10`` ()=
[1..10] |> should be (supersetOf [1..10])
[1..10] |> should be (supersetOf [1..10])

[<TestMethod>] member test.
``should fail on '1 to 10 should not be superset of 1 to 10'`` ()=
shouldFail (fun () ->
[1..10] |> should not' (be supersetOf [1..10]))
5 changes: 5 additions & 0 deletions tests/FsUnit.NUnit.Test/beSupersetOf.fs
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ type ``be supersetOf tests`` ()=
[<Test>] member test.
``1 to 10 should be superset of 1 to 10`` ()=
[1..10] |> should be (supersetOf [1..10])

[<Test>] member test.
``should fail on '1 to 10 should not be superset of 1 to 10'`` ()=
shouldFail (fun () ->
[1..10] |> should not' (be supersetOf [1..10]))
7 changes: 6 additions & 1 deletion tests/FsUnit.Xunit.Test/beSupersetOf.fs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ type ``be supersetOf tests`` ()=

[<Fact>] member test.
``1 to 10 should be superset of 1 to 10`` ()=
[1..10] |> should be (supersetOf [1..10])
[1..10] |> should be (supersetOf [1..10])

[<Fact>] member test.
``should fail on '1 to 10 should not be superset of 1 to 10'`` ()=
shouldFail (fun () ->
[1..10] |> should not' (be supersetOf [1..10]))

0 comments on commit db41e9f

Please sign in to comment.