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

New Post: Why does Should().ContainSingle() accept predicate mandatory

$
0
0
Comparing to LINQ having both Single() and Single(predicate), I want ContainSingle() overload accepting no parameters.
What analog does exist so far? HaveCount(1)?

Also even I specify predicate, I want ContainSingle().And. to return assertion against this single T but not initial IEnumerable<T>. Doesn't it make sense?

Viewing all articles
Browse latest Browse all 1402

Trending Articles



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