Reputation: 253
I want to test a method returning collection using fluent-assertions to ensure that returned collection is a child of other collection, I tried fatherCollection.Should().Contain(childCollection);
but not work. How to do that?
Upvotes: 0
Views: 371
Reputation: 8889
You can use collection.Should().ContainEquivalentOf(item)
on each of the items in the child collection.
Upvotes: 3