How to enable nunit debugging

Source: Internet
Author: User

1. First download and install nunit-Gui, Here download: http://prdownloads.sourceforge.net/nunit/NUnit-2.4.7-net-2.0.zip? Download

2. First add a tested project debugwithnunit, add a class calcfunction, and provide a division function.

3. Add a test project testproject and create a new testcalcfunction class to test the above project. nunit. Framework should be introduced.

4. Right-click the testproject project, select Properties, find the debug option, and set the debug Start external programto nunit.exe

5. Set the testproject project to start the project and add a breakpoint to the place where you want to debug it.

6. Run. The system automatically starts nunit and stops running to the breakpoint.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.