I have a service that returns IEnumerable<T> one by one very slowly (or even returns stream that never ends).
I want to test that it actually returns something so I do
service.GetAll().Should().NotBeEmpty();
and it does not complete until it enumerates the whole result. I could do Take(1) but I would rather fix NotBeEmpty method if possible.
Comments:
I want to test that it actually returns something so I do
service.GetAll().Should().NotBeEmpty();
and it does not complete until it enumerates the whole result. I could do Take(1) but I would rather fix NotBeEmpty method if possible.
Comments: