转载:How to debug dll by using NUnit
2008-02-22 23:36 Koy 阅读(473) 评论(0) 编辑 收藏 举报转载自: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:
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-Net-2.0 2.2.8\bin\nunit-gui.exe 或者 nunit.exe
Command Line Arguments text box: L100MathTests.dll
Working Directory text box: C:\L100MathLib\L100Math\L100MathTests\bin\Debug\
3. Select Debug | Start Debugging from the main menu or use the F5 shortcut.
4. Switch to the 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.
4. Switch to the 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.