tags:

views:

220

answers:

2
+2  Q: 

What Is Moq?

I keep seeing this referred to on DotNetKicks etc... Yet cannot find out exactly what it is (In English) or what it does? I am stupid, so if you could explain it simply it would be great and why I would use it (If it is something I use)???

Thanks

+2  A: 

Moq is a mocking framework for C#/.NET. It is used in unit testing to isolate your class under test from its dependencies and ensure that the proper methods on the dependent objects are being called. For more information on mocking you may want to look at the Wikipedia article on Mock Objects.

Other mocking frameworks (for .NET) include TypeMock, RhinoMocks, nMock, .etc.

tvanfosson
Excellent thanks... I think I need to read up about unit testing more as well - Appreciated thank you
leen3o
MOQ is also a term used in trading business = "Minimum Order Quantity": a product that costs $100 at a order quantity of 5000 pcs could be as low as $20 if you buy a million units. That's nothing to do with computer science I know! :)
Junior Mayhé
+1  A: 

Moq is a mocking engine for doing .Net TDD.

Matt Grande