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

Closed Issue: CollectionAssertions.Equal doesn't validate that collections have the same count [11156]

$
0
0
The following test should fail because the second collection has fewer elements than the first, but it doesn't

[Test]
public void CollectionAssertions_Equal_should_fail_when_collections_have_different_numbers_of_elements()
{
Action action = () => (new[] {"a", "b", "c", "d"}).Should().Equal(new[] {"a", "b", "c",});
action.ShouldThrow<AssertionException>();
}

Viewing all articles
Browse latest Browse all 1402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>