.NET Core testing with MSTest

Microsoft MSTest is the default testing framework that ships with Visual Studio and is developed by Microsoft, which originally was part of the .NET framework but is also included in .NET Core. The MSTest framework is used to write load, functional, UI, and unit tests.

MSTest can be used as a uniform application platform support as well as in testing a wide range of applications—Desktop, Store, Universal Windows Platform (UWP), and ASP.NET Core. MSTest is delivered as a NuGet package.

MSTest-based unit test projects can be added to an existing solution containing projects to be tested following the steps of adding a new project to a solution in Visual Studio 2017:

  1. Right-click the existing solution in Solution ...

Get C# and .NET Core Test Driven Development 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.