转载: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.
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.
相关文章推荐
- How to invoke active dll written by VB using VC - VC如何调用VB写的Active Dll - 详解
- SQL: How to get a series of dates in sql using connect by
- How to write ANSI C programs by using Visual C++
- How to use GCC to build DLL by DEF file in MinGW?
- How to simulate a Form POST request by using WinInet
- How to open the dialog out of iframe by using jquery dialog
- How to authenticate against the Active Directory by using Forms authentication and Visual C# .NET
- How to use an ASP.NET application to query an Indexing Service catalog by using Visual Basic .NET
- How to add HTML code to the clipboard by using Visual Basic Or VBA
- How to debug qemu and libvirt using gdb
- How To Debug Android By Adb
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to write to an event log by using Visual C#
- How To Read and Write BLOB Data by Using ADO.NET with Visual C# .NET
- How To Implement Forms-Based Authentication in Your ASP.NET Application by Using C# .NET
- How to create new view by using cleartool command in Clearcase?
- How to make dll and lib using bakefile.
- How to use insert or retrieve data by using Core Data in iOS
- How to Debug Programs on Remote Server using GDBServer Example
- How To Transfer XML Data to Microsoft Excel 2002 by Using Visual C# .NET