转载自:http://focuswindows.blogspot.com/2008/01/how-to-debug-dll-by-using-nunit.html

1.Place a breakpoint at the first line of the TestAdd method.



2.Right-click on the L100MathTests project in Solution Explorer and select Properties.


Select the Debug tab and fill in the following options:


Start External Program text box : C:\Program Files\nunit.exe

Command Line Arguments text box: L100MathTests.dll

Working Directory text box: C:\L100MathLib\L100Math\L100MathTests\bin\Debug\

3. Select NUnit GUI application and double-click on the TestAdd method. The breakpoint that you previously set should be hit and a yellow cursor and line will be shown.

5.Select Debug | Step Into from the debugger main menu to enter the MathHelper.Add method.

相关文章:

  • 2022-02-27
  • 2021-04-11
  • 2021-08-19
  • 2021-10-13
  • 2022-12-23
  • 2022-01-04
  • 2021-07-21
  • 2022-01-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
相关资源
相似解决方案