A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.
Full Changelog: https://github.com/fluentassertions/fluentassertions/compare/6.5.0...6.5.1 Public release notes: https://fluentassertions.com/releases/#651
BeLowerCased
and BeUpperCased
for mixed strings by @dennisdoomen in https://github.com/fluentassertions/fluentassertions/pull/1792
HaveAccessModifier
assertion by @dennisdoomen in https://github.com/fluentassertions/fluentassertions/pull/1793
new
by @dennisdoomen in https://github.com/fluentassertions/fluentassertions/pull/1794
AllSatisfy
by @kmusick in https://github.com/fluentassertions/fluentassertions/pull/1790
AssertionScope
s by @dennisdoomen in https://github.com/fluentassertions/fluentassertions/pull/1797
Full Changelog: https://github.com/fluentassertions/fluentassertions/compare/6.4.0...6.5.0
ThatAreStatic
and ThatAreNotStatic
to MethodInfoSelector
by @chvollm in https://github.com/fluentassertions/fluentassertions/pull/1740
StatusCode
of HttpResponseMessage
by @mu88 for @swisspost in https://github.com/fluentassertions/fluentassertions/pull/1737
ContainItemsAssignableTo
now expects at least one item assignable to T
by @MullerWasHere in https://github.com/fluentassertions/fluentassertions/pull/1765
WithInnerExceptionExactly
by @karenfarnes in https://github.com/fluentassertions/fluentassertions/pull/1769
When_the_execution_time_of_an_async_action_is_less_than_a_limit_it_should_not_throw
by @jnyrup in https://github.com/fluentassertions/fluentassertions/pull/1778
OccurredEvent
ordering on monitored object is now done via thread-safe counter by @MullerWasHere in https://github.com/fluentassertions/fluentassertions/pull/1773
BufferedStream
by @amosonn in https://github.com/fluentassertions/fluentassertions/pull/1772
TryGetValue
for dictionary like enumerables by @jnyrup in https://github.com/fluentassertions/fluentassertions/pull/1786
Full Changelog: https://github.com/fluentassertions/fluentassertions/compare/6.3.0...6.4.0 Public release notes: https://fluentassertions.com/releases/#640
ComparingByMembers
clears equalityStrategyCache
by @jnyrup in https://github.com/fluentassertions/fluentassertions/pull/1724
ThatAreAsync()
and ThatAreNotAsync()
to MethodInfoSelector
by @chvollm in https://github.com/fluentassertions/fluentassertions/pull/1725
ContainSingle()
by @bert2 in https://github.com/fluentassertions/fluentassertions/pull/1753
Full Changelog: https://github.com/fluentassertions/fluentassertions/compare/6.2.0...6.3.0
AssertionScopeSpecs.cs
by @coolhome in https://github.com/fluentassertions/fluentassertions/pull/1669
BeEquivalentTo
on a collection with nested collections would throw on missing members by @dennisdoomen in https://github.com/fluentassertions/fluentassertions/pull/1713
Full Changelog: https://github.com/fluentassertions/fluentassertions/compare/6.1.0...6.2.0 Public release notes: https://fluentassertions.com/releases/#620