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

Closed Issue: Collection.Should().Equal() bug or feature? [11960]

$
0
0
Version 1.7.1

var collection = new[] { "1" };
collection.Should().Equal("1");

Raises an exception:
Expected collection to be equal to "1", but {"1"} differs at index 0.

Thanks.
Comments:

Cannot be fixed.


Viewing all articles
Browse latest Browse all 1402

Trending Articles



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