AwesomeAssertions and Shouldly Guide: Should(), BeEquivalentTo Options, Collections, Exceptions, Dates and Assertion Scopes
In AwesomeAssertions, BeEquivalentTo compares types that override Equals by calling Equals instead of their members; with entities equal by Id this treats two different orders as equal, and the fix is ComparingByMembers<Entity>(). Excluding, For().Exclude, Using/WhenTypeIs, WithStrictOrdering, Throw/ThrowExactly, BeCloseTo and AssertionScope; Shouldly's source-based messages and a FluentAssertions 7 to AwesomeAssertions 9 migration with real build errors.
15 Nov 2026
·
13 min
·
3