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

Edited Unassigned: CollectionAssertions.Equal does not handle null properly [12490]

$
0
0
I have the following situation:

string[] expected = null;
string[] result = null;

result.Should().Equal(expected) // Throws Exception

"Expected collection to be equal, but found <null>."

Since the result is equal to the expected, this should not throw an exception.

Viewing all articles
Browse latest Browse all 1402

Trending Articles



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