Unit testing in .NET
To develop unit test cases, we usually use a unit test framework to improve efficiency. There are several unit test frameworks available in a .NET environment as follows:
- Microsoft Test Framework (MSTest) is shipped together with Visual Studio. The initial version of MSTest (V1) was not an open source product. The first release was shipped with Visual Studio 2005. Please refer to the book Microsoft Visual Studio 2005 Unleashed by Lars Powers and Mike Snell to find more information about MSTest (V1). Later, Microsoft made the new-release MSTest (V2) open source and hosted it on GitHub. The first MSTest (V2) release was available around 2017.
- NUnit is an open source testing framework ported from JUnit. It was the first unit test framework for .NET. The earliest releases were hosted at SourceForge in 2004. Please refer to the version 2.0 release note in the Further reading section. The most recent releases have been moved to GitHub.
- xUnit is a more...