Microsoft Moles with Visual Studio 2012... Sort of.
I think Microsoft Moles is one of, if not the best software testing isolation framework available for C#.Net, the only near rival that can mock and stub non-virtual classes and other difficult to isolate objects is Typemock isolator. Which, at its very cheapest and feature barren is still around $800, whereas Moles was free!
So in Visual Studio 2012 they aren't releasing the Moles package and instead including all the tooling with the Fakes framework, which is only in Visual Studio Ultimate edition aka $13000.
So for us poorer developers, if we want to use Moles in Visual Studio 2012. We have 2 options:
- Figure out how to deploy the Moles Host Adapter in Visual Studio 2012 - My attempts at this have failed so far, if anyone has figured this option out let me know!
For the second option, in VS2012 go to Tools -> External Tools...
You can then call the Moles runner which in turn can call the NUnit runner or the Mstest runner, or your chosen framework.
Moles and NUnit example
Command - Add the Moles.runner.exe path