Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

New Post: GenericCollectionAssertions BeInOrder/NotBeInOrder

$
0
0

Any ideas how to combine these when dealing with nested collections?

Meaning, say I wanna do this:

actual.ShouldHave().AllProperties().IncludingNestedObjects(CyclicReferenceHandling.Ignore).EqualTo(expected);

but in case there are nested collection involved, call 'NotBeInOrder' instead of the current 'Equal' behavior.

(I'm fetching data from a database and can't rely on order)

Thanks!


Viewing all articles
Browse latest Browse all 1402

Trending Articles