I'm new with MSTest (Visual Studio 2010). Is there any integrated mocking framework that comes with VS2010? Or is there any other good mocking framework that's easy to pick up that I could use?
+1
A:
Not sure if mocking supported yet by Microsoft. I used rhino mock for type safety option, you can read this just for a warm up.
ktutnik
2010-09-04 04:35:41
A:
The VS 2010 doesn't come with mocking framework. But you can use either Rhino Mocks (supports .NET 2.0 and 3.5), or Moq (supports .NET 3.5 and .NET 4).
Both frameworks are good, but I prefer Moq, since it feels more natural to me. It uses fluent lambda syntax which feels very clean to me once you get used to it.
Both frameworks are open source.
If you want a commercial one, go with Typemock isolator. This framework can mock virtually anything but not free.
Valentin Vasiliev
2010-09-04 04:38:23
@Valentin. thanks, I went for Moq.
Attilah
2010-09-04 06:51:47
+2
A:
you may want to take a look at pex and moles. i havent really played with it but if u wana stay faithful to MS tools, take a stab at it.
Perpetualcoder
2010-09-04 04:43:48
@PerpetualCoder, thanks.I'll have a look at them later. for now on, I'm just gonna stick with Moq.
Attilah
2010-09-04 06:52:34
@Attilah: Your question sounded like you wanted a MS Solution..Moq is really nice. Hope it meets your needs
Perpetualcoder
2010-09-05 04:25:58