我使用 typemock 进行单元测试。如何开始构建使用 typemock。我只能使用 typemock 和 msbuild 吗?否则我应该使用 nunit-console.exe 吗?
当我开始使用单元测试构建时......我的错误在哪里?
<Import Project="C:\Program Files (x86)\Typemock\Isolator\7\TypeMock.MSBuild.Tasks" />
<Target Name="BeforeTest">
<TypeMockStart LogPath="C:\TypeMockLogs" LogLevel="9" Target="3.5" />
<Exec ContinueOnError="false" WorkingDirectory="$(SolutionRoot)" Command="$(NUNIT) \bin\Debug\Business.Tests.dll" />
</Target>
<Target Name="AfterTest">
<TypeMockStop Undeploy="true" />
</Target>
<PropertyGroup>
<TypeMockLocation>C:BuildIsolator</TypeMockLocation>
<NUNIT>"C:\Program Files (x86)\NUnit 2.6\bin\nunit-console.exe"</NUNIT>
<TMockRunnerPath>"C:\Program Files (x86)\Typemock\Isolator\7\TMockRunner.exe"</TMockRunnerPath>
<MSTestPath>"D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe"</MSTestPath>
</PropertyGroup>