DEV Community

Matheus Rodrigues
Matheus Rodrigues

Posted on • Originally published at on

Mock Multiple Calls To The Same Method With FakeItEasy, Moq and NSubstitute

You can download this article project on GitHub.

Sometimes when doing unit test, we encounter subsequent calls to the same method. When mocking a method the default behavior is to always return the same result.

In this post, I will show how you can mock multiple calls to the same method with the mocking frameworks FakeItEasy, Moq and NSubstitute.

Continue Reading...

Top comments (0)