您的位置:首页 > 其它

转载:How to debug dll by using NUnit

2008-02-22 23:36 549 查看
转载自: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-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.

5.Select Debug | Step Into from the debugger main menu to enter the MathHelper.Add method.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: