Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # IT:AD:FluentAssertions # <callout type="Navigation" class="small"> * [[../|(UP)]] {{indexmenu>.#2|nsort tsort}} * See also: * [[IT/AD/XUnit/]] * [[IT/AD/NUnit/]] * [[it/ad/unit_testing/]] </callout> <panel title="Summary"> [[IT/AD/NUnit/]] had fluent assertions out of the box. [[IT/AD/XUnit/]] doesn't. A third party library adds it in an elegant, portable manner. </panel> ## Process ## The library works equally well with [[IT/AD/NUnit/]] as [[IT/AD/XUnit/]] as well other frameworks -- so it makes your tests portable (bar the Test/Fact attributes which have to be updated). The library uses a `Should()` method followed by one of a set of `Be...()` methods, which makes your tests very readable: <sxh> var foo = false; foo.Should().BeTrue(); var bar = 3; foo.Should().Be(3); foo.Should().BeGreaterThan(2); foo.Should().BeLessThan(4); foo.Should().NotBe(5); </sxh> /home/skysigal/public_html/data/pages/it/ad/fluentassertions/home.txt Last modified: 2023/11/04 03:24by 127.0.0.1