What are NSubstitute limitations, specially vs MOQ?

George Botros picture George Botros · Jan 18, 2016 · Viewed 14.1k times · Source

I'm about to take a decision about the mocking library for my next project.

and because I'm new to those libraries I made a quick search

I found that MOQ is much popular than NSubstitute and I expect more help from the community specially here at SO

But I liked NSubstitute syntax more, also it has a nice docs.

So my question is "Is there any thing that I can achieve using MOQ I cant achieve using NSubstitute?"

Answer

rad picture rad · Jan 18, 2016

I am not aware of any limitation of nsubstitute

Few years ago I was an adept of moq, and now I have a preference for nsubstitute. I like the syntax (you call directly the method vs setup.), I think NSubstitute has the best syntax and is the most readable of all the frameworks (but this is a subjective assertion ^^).

Oh maybe one thing : NSubstitute don't have a strict mock mode (but I always thought it was a bad idea, so I never saw it as a limitation)