Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug123 committed Apr 3, 2022
1 parent bffbe34 commit 7845667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions tests/FsUnit.Xunit.Test/typed.shouldBeSmallerThanTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ type ``shouldBeSmallerThan tests``() =

[<Fact>]
member __.``10 should not be less than 10``() =
(fun () -> 10 |> shouldBeSmallerThan 10)
|> shouldFail<MatchException>
(fun () -> 10 |> shouldBeSmallerThan 10) |> shouldFail<MatchException>

[<Fact>]
member __.``10[dot]0 should be less than 10[dot]1``() =
Expand All @@ -22,4 +21,4 @@ type ``shouldBeSmallerThan tests``() =
member __.``10[dot]0 should not be less than 10[dot]0``() =
(fun () -> 10.0 |> shouldBeSmallerThan 10.0)
|> should throw typeof<MatchException>
//|> shouldFail<MatchException>
//|> shouldFail<MatchException>
4 changes: 1 addition & 3 deletions tests/FsUnit.Xunit.Test/typed.shouldEqualTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ type ``shouldEqual Tests``() =
|> Assert.Throws<MatchException>
|> fun e ->
e.Message
|> shouldEqual(
sprintf " Expected: not Equals Error \"Foo\"%sActual: Error \"Foo\"%s" Environment.NewLine Environment.NewLine
)
|> shouldEqual(sprintf " Expected: not Equals Error \"Foo\"%sActual: Error \"Foo\"%s" Environment.NewLine Environment.NewLine)

[<Fact>]
member this.``structural equality``() =
Expand Down

0 comments on commit 7845667

Please sign in to comment.