Anonymous types and FluentAssertions
Say you are testing the return value of a method returning an interface:
1 | public class UnderTest |
How to comfortably assert on the return value if you don’t know the concrete type? It turns out FluentAssertions handles anonymous types perfectly:
1 | var underTest= new UnderTest(); |