Running Moles using NUnit Console from Visual Studio

Create an external tool in Visual Studio as shown below

 

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)

using (MolesContext.Create()) in your code block.

posted @ 2011-06-10 17:49  一只老鼠  阅读(305)  评论(0编辑  收藏  举报