. 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