Unit testing. What are the new methods / tools in .NET 4.0?

I do some Unit Testing research, and most of the questions I see in Naru about NUnit are at least a year. Are you using any new unit testing tools that are available through Visual Studio 2010 and .NET 4.0? Share any new technology that you know about. Thank!

+3
source share
3 answers

NUnit is still one of the most popular module testing modules. MsTest is also a popular framework because it is enabled by default with VS. If you want to create a framework that does its own thing, you can check out XUnit . One of those that I used in the past, and enjoyed MbUnit .

-, , . , . Moq, NMock, Easy Mock, Rhino Mocks, , TypeMock Just Mock. Moq - .

+3

MSTest Visual Studio 2010, VS 2008. , - .

unit test, .

, , NUnit .

+4

, , - Pex. :

Pex automatically generates test suites with high code coverage. Correctly from the Visual Studio code editor, Pex finds an interesting input-output value of your methods, which you can save as a small set of tests with high code coverage. Microsoft Pex is a Visual Studio Add-in for testing .NET. Framework applications.

Definitely worth checking out.

+3
source

Source: https://habr.com/ru/post/1794316/


All Articles