Relative Content

Tag Archive for c#fluent-assertions

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.