Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is a good mocking framework to start mocking with in asp.net MVC? (novice and probably not a hardcore mocker)

i want to use mocking in my unit tests.

Till now i more programmed 'tests' and not 'unittests' because i tested whole program flows, but reading discussions i can see the beauty of a mock object, from time to time.

But, looking around, there are a lot of frameworks available, and i want to make sure i start with a good one, because i'd like to invest time in learning a mock framework only once.

So as i said in the title, i'm a novice for mocking, using asp.net mvc, and don't think i'll be a hardcore mocker, investigating the edges of a mocking framework.

To give you an idea of what i like in the IOC frameworks i like unity and structuremap.

Michel

like image 238
Michel Avatar asked Nov 30 '10 13:11

Michel


1 Answers

I would recommend Moq. I previously tried Rhino, but I personally find the Moq API to be slicker.

like image 146
Tim Lloyd Avatar answered Sep 23 '22 11:09

Tim Lloyd