Moq, NSubstitute and FakeItEasy mocking library syntax comparison

Which .NET mocking library syntax do you prefer from the below test examples?


… and which library do you use and why?

Click on the image for a larger view in a new window.

Moq is by far the most popular library but to me the NSubstitute syntax looks a lot nicer.

Leave a Reply

Your email address will not be published. Required fields are marked *