Thursday, April 15, 2010

Running Moles using NUnit Console from Visual Studio

Create an external tool in Visual Studio as shown below

image

Command : C:\Program Files (x86)\Microsoft Moles\bin\moles.runner.exe

Arguments: $(BinDir)/$(TargetName).dll /runner:"c:\Development Tools\NUnit 2.5.2\bin\net-2.0\nunit-console.exe" /x86

Initialize Directory : $(ProjectDir)

Now you can use Moles from within Visual Studio. :)

2 comments:

tourist said...

I was looking for a while to enable NUnit in VS using moles... Thanks alot!

Anonymous said...

Great! Many Thanks!