Adding unit tests

Unit tests allow you to individually verify the behavior of your various technical components and ensure that they are working as expected. They also help you to quickly identify regressions and analyze the overall impact of new developments.

Visual Studio 2017 includes powerful features for unit testing. The Test Explorer helps you to run unit tests as well as view and analyze test results. For that, you can either use the built-in Microsoft testing framework or additional frameworks such as NUnit or xUnit.

Furthermore, you can automatically execute unit tests after each build, so developers can react quickly if something is not working as expected.

Refactoring code can be done without fearing regressions, since unit tests ...

Get Learning ASP.NET Core 2.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.