Comparing Resources using FluentAssertions #2498
-
|
So I'm writing integration tests. I want to compare what's returning from the server to what I'm expecting using Fluent Assertions. I want to exclude the However, since Results in: Any known workarounds for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Yeah, it took me ages before I understood the fine details of FluentAssertions in this regard. It actually works much better if you use Note the |
Beta Was this translation helpful? Give feedback.
Yeah, it took me ages before I understood the fine details of FluentAssertions in this regard. It actually works much better if you use
BeEquivalentTo()with anonymous objects, so e.g.Note the
new {}, notnew Patient {}.