. NET Core series: 4 tests,. netcore

Source: Internet
Author: User
Tags xunit

. NET Core series: 4 tests,. netcore

2016.6.27 has been officially released by Microsoft. NET Core 1.0 RTM, but the toolchain is still a preview version. A large number of open-source test libraries also have at least released support for Alpha testing. NET Core, this article The State. net Core Testing Today summarizes the current progress of each open source Test Library. The purpose of this article is to test our application when we build it. You can add different test cases NSubstitute for your project by using XUnit, at the same time, conduct integration tests on the entire project. This time, we use Visual Studio 2015 Update 3 for compiling. XUnit.net is an open-source Testing Tool Based on. NET Framework. XUnit.net allows you to perform unit tests on C #/F #/VB. NET. ASP. NET Core directly said goodbye to the previous Visual Studio Unit Test Framework, but directly used xUnit.net and xUnit.net Based on NUnit. From the website or official website, you can find many advantages of xUnit, which have some advantages over NUnit and other testing frameworks.
1) generate an object instance for each test method
2) canceled [SetUp] and [TearDown]
3) [ExpectedException] is canceled.
4) functions similar to Aspect
5) reduced the number of Custom Attributes
6) Generic
7) Anonymous Delegation
8) extensible assertions
9) scalable testing methods
10) scalable test classes

Understanding

Related Article

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.