Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the "preferred" method of creating mock objects for use with Visual Studio unit testing?

I am aware of Castle's DynamicProxy and RhinoMocks, but I was wondering if, given the fact that Microsoft has introduced unit testing as a first class feature of Visual Studio, whether they have provided any standardized object mocking mechanism to accompany it?

like image 562
Nathan Ridley Avatar asked Jan 24 '23 15:01

Nathan Ridley


1 Answers

I too thought that Rhino was the way to go, but after working with it for 2 months, switched to Moq.

I would highly recommend Moq if you're working with .Net 3.5. Please look at this post for some more information regarding the mocking frameworks that you are considering.

like image 119
womp Avatar answered Mar 16 '23 00:03

womp