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

Created Issue: ShouldContainInOrder and not unique items [11292]

$
0
0
Consider

new[] { 1, 2, 2, 3 }.Should().ContainInOrder(new[] { 1, 2, 3 });

Should that be passing or failing?

And what about

new[] { 1, 2, 3, 2 }.Should().ContainInOrder(new[] { 1, 2, 3 });

I'm not sure what really to expect.

For my gut, the first example should pass (which it does not at the moment); the second example should not pass.

What are your thoughts?

Viewing all articles
Browse latest Browse all 1402

Trending Articles