3

I have heard/read a little about both of these frameworks and have decided I want to use of of the two. Which is better? Why?

Thanks in advance! Oshiwoshydopaliscious

price
  • 43
  • 1
  • 6
  • [typemock-vs-justmock-vs-rhinomock-moq-current-situation-in-2011?](http://stackoverflow.com/questions/5755413/typemock-vs-justmock-vs-rhinomock-moq-current-situation-in-2011?rq=1) – nawfal Jul 23 '14 at 18:00

1 Answers1

6

Well, TypeMock Isolator is a paid product and Moq is FOSS, so that may be your decision point alone. Beyond that, I believe TypeMock provides the ability to mock statics and legacy code that is unmockable through standard polymorphism.

For blow by blow feature comparisons, there are plenty out there:

http://msmvps.com/blogs/bmains/archive/2009/11/03/moq-and-typemock-in-comparison.aspx

But, I'd say your decision amounts to what you're willing to spend. You get more "Mockability" if you pay more. So, if you're trying to retrofit tests on legacy code with lots of static, you might want TypeMock. If you're starting a green field project and have the luxury of writing testable code from the get-go, Moq is great.

Erik Dietrich
  • 6,080
  • 6
  • 26
  • 37
  • 1
    Thanks! I think I am going to go with TypeMock because I have to work in a team where not everyone uses the DI methodology. – price Feb 14 '12 at 23:00
  • 3
    The link has been changed to http://blogs.msmvps.com/bmains/2009/11/04/moq-and-typemock-in-comparison/ – subs Sep 24 '15 at 05:45