Replies: 1 comment
-
There's no built-in API for this, but you could use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, does anyone know how to check that collection contains only one object that is equivalent to expected item?
For example something like that:
new []{new {a = "a"}, new {b = "b"}, new {b = "b"}}.Should().ContainSingleEquivalentTo(new {b = "b"})
, which should fail as there are two items matching the expected one.Beta Was this translation helpful? Give feedback.
All reactions