vs2013 Simple Unit Testing

Source: Internet
Author: User

First step, file → create a new project, such as:

When opened,

2. Enter the console project, create an Add static method, and declare the permissions of the program class as public.

3. Install unit test Generator by using the VS menu bar "Tools"-"extensions and Updates"-search "unit test Generator". Restart vs after installation.

However, the last few days of my extended update has not been loaded, I have given up the whole. These two days, I re-downloaded the software. So it's loaded with this plugin.

4. Then right-click in the Blanks, select Unit test Generator, automatically generate unit tests, and modify the test method in which the Add method is tested.

5. Finally, you can perform the test directly and see the results.

vs2013 Simple Unit Testing

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.