Comparing Resources using FluentAssertions #2498
Answered
by
ewoutkramer
LodewijkSioen
asked this question in
Q&A
|
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? |
Answered by
ewoutkramer
Jan 10, 2024
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 |
2 replies
Answer selected by
ewoutkramer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 {}.