Excluding certain properties when asserting objects with FluentAssertion
It’s very common that we assert if two objects are equivalent in unit tests. Using FluentAssertion, this looks like the following actual.ShouldBeEquivalentTo(expected); However, there are times where you want to exclude certain properties when comparing objects. This might be because the value of the property cannot be predicted or you just don’t want to include … [Read more…]