diff --git a/src/Faqt.Tests/HigherOrderAssertions.fs b/src/Faqt.Tests/HigherOrderAssertions.fs index 290ab6b..0ddff67 100644 --- a/src/Faqt.Tests/HigherOrderAssertions.fs +++ b/src/Faqt.Tests/HigherOrderAssertions.fs @@ -8,7 +8,7 @@ module Satisfy = [] - let ``Passes if the inner assertion passes and can be chained with And`` () = + let ``Can be chained with And`` () = "asd" .Should() .Satisfy(fun x -> x.Should().Pass()) @@ -16,6 +16,11 @@ module Satisfy = .And.Be("asd") + [] + let ``Passes if the inner assertion passes`` () = + "asd".Should().Satisfy(fun x -> x.Should().Pass()) + + [] let ``Fails with expected message if the inner assertion fails`` () = fun () -> "asd".Length.Should().Satisfy(fun x -> x.ToString().Length.Should().Fail()) @@ -47,7 +52,7 @@ module NotSatisfy = [] - let ``Passes if the inner assertion fails and can be chained with And`` () = + let ``Can be chained with And`` () = "asd" .Should() .NotSatisfy(fun x -> x.Should().Fail()) @@ -55,6 +60,11 @@ module NotSatisfy = .And.Be("asd") + [] + let ``Passes if the inner assertion fails`` () = + "asd".Should().NotSatisfy(fun x -> x.Should().Fail()) + + [] let ``Fails with expected message if the inner assertion passes`` () = fun () -> "asd".Should().NotSatisfy(fun x -> x.Should().Pass()) @@ -80,7 +90,16 @@ module SatisfyAll = [] - let ``Passes if all of the inner assertions passes and can be chained with And`` () = + let ``Can be chained with And`` () = + "asd".Should().SatisfyAll([]).Id>().And.Be("asd") + + + [] + let ``Passes if assertion list is empty`` () = "asd".Should().SatisfyAll([]) + + + [] + let ``Passes if all of the inner assertions passes`` () = "asd" .Should() .SatisfyAll( @@ -94,10 +113,6 @@ module SatisfyAll = .And.Be("asd") - [] - let ``Passes if assertion list is empty`` () = "asd".Should().SatisfyAll([]) - - [] let ``Fails with expected message if at least one of the inner assertions fail`` () = fun () -> @@ -160,18 +175,21 @@ module SatisfyAny = [] - let ``Passes if all of the inner assertions passes and can be chained with And`` () = - "asd" - .Should() - .SatisfyAny([ (fun s1 -> s1.Length.Should().Pass()); (fun s2 -> s2.Length.Should().Pass()) ]) - .Id>() - .And.Be("asd") + let ``Can be chained with And`` () = + "asd".Should().SatisfyAny([]).Id>().And.Be("asd") [] let ``Passes if assertion list is empty`` () = "asd".Should().SatisfyAny([]) + [] + let ``Passes if all of the inner assertions passes`` () = + "asd" + .Should() + .SatisfyAny([ (fun s1 -> s1.Length.Should().Pass()); (fun s2 -> s2.Length.Should().Pass()) ]) + + [] let ``Passes if only one of the inner assertions passes 1`` () = "asd"