FluentAssertions: How to get the context printed correctly within custom EquivalencyStep
In my application I use a custom PaginatedList<T>
class that extends List
with some extra properties. Given that FluentAssertion only compares the content of the list and excludes extra properties when using BeEquivalentTo()
, I wrote my own EquivalencyStep
to check the extra property manually. However, I can’t get it to print the name of the properties properly.
FluentAssertions BeOfType failing with RuntimeType
I’m using reflection to get a custom attribute, and then I want to validate the type passed into the constructor, so I tried this: