Unit testing .NET applications

Unit testing represents the practice of writing code to test other code. The term "unit" refers to identifying pieces of code (classes, methods, and so on) that represent useful functionality and can be tested by separate pieces of code. As a developer, establishing these tests allows you to easily verify that your code continues to work as changes and additions are made.

Visual Studio historically has been tightly tied to the MSTest framework when it comes to unit testing. The inclusion of a unit test framework inside Visual Studio has been excellent. It has encouraged developers to improve their quality by writing tests to prove code functions as expected. On the flip side, many developers regard MSTest as an inferior ...

Get Visual Studio 2015 Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.