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

Commented Unassigned: BeEmpty() on a byte array [12491]

$
0
0
imho empty on a byte array means that all bytes is zero, not that the actual length is zero.

The method isn't very useful otherwise as it's quite easy to write Buffer.Count.Should.Be(0);
Comments: The problem with that is that it would be a breaking change and inconsistent with invoking that method on other collections. Besides, when the count is not what you would expect, you wouldn't get an equally clean answer.

Viewing all articles
Browse latest Browse all 1402

Trending Articles



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