2011-05-05 39 views

回答

3

下面的步驟應該讓你有:

  1. 添加在您的測試項目
  2. 在您的測試項目的AssemblyInfo.cs到Pex.NUnit.dll參考,添加屬性 - [assembly: Pex.NUnit.PexNUnitPackage]
  3. 構建解決方案(無論是從Visual Studio或使用命令行的MSBuild)
  4. 運行Pex的命令行:pex.exe bin\Debug\TestProjectName.dll
  5. 測試根據reports\TestProjecName.#####.#####\tests進行。

您可以在Parameterized Unit Testing with Microsoft Pex