Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
MSTest functionality is split into multiple NuGet packages:
We recommend that you don't install these packages directly into your test projects. Instead, you should use either:
MSTest.Sdk: A MSBuild project SDK that includes all the recommended packages and greatly simplifies all the boilerplate configuration. Although this is shipped as a NuGet package, it's not intended to be installed as a regular package dependency, instead you should modify the Sdk
part of your project (e.g. <Project Sdk="MSTest.Sdk">
or <Project Sdk="MSTest.Sdk/X.Y.Z">
where X.Y.Z
is MSTest version). For more information, please refer to MSTest SDK overview.
the MSTest NuGet package, which includes all recommended packages: MSTest.TestFramework
, MSTest.TestAdapter
, MSTest.Analyzers
and Microsoft.NET.Test.Sdk
.
If you are creating a test infrastructure project that is intended to be used as a helper by multiple test projects, you should install the MSTest.TestFramework
and MSTest.Analyzers
packages directly into that project.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
C# testing in Visual Studio - Training
Start testing your C# apps by using the testing tools in Visual Studio. Learn to write tests, use Test Explorer, create test suites, and apply the red, green, refactor pattern to write code.
Documentation
Learn about migrating from legacy MSTest (MSTest v1) to latest MSTest (MSTest v3).
Write tests with MSTest - .NET
Learn how to write tests using MSTest.
Learn about MSTest.