How to return a value several times in a row using NSubstitute
I was recently writing some tests that had a mocked method that I wanted to return the same value several times in a row from. It turns out, NSubstitute can do this out of the box. While Returns takes a value T, if you look at its method signature, you’ll see it takes another argument …
How to return a value several times in a row using NSubstitute Read More »