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

Closed Issue: Should().NotBeEmpty() enumerates collection twice [10363]

$
0
0
I have a service that returns IEnumerable<T> and enumeration is fairly slow.
I am writing a smoke test that just makes sure something is returned:

service.GetAll().Should().NotBeEmpty();

I see that my collection gets enumerated twice (something I would not expect from such assertion).

This issue is tightly linked to http://fluentassertions.codeplex.com/workitem/10362
Comments:


Viewing all articles
Browse latest Browse all 1402

Trending Articles



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