Skip to main content

This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter. Supported platforms: - .NET 4.6.2+ - .NET 8.0+ - .NET 8.0 Windows.18362+ (WinUI) - UWP 10.0.16299 - UWP 10.0.17763 with .NET 9+ MSTest is Microsoft supported Test Framework.

Total Downloads
21.3M
21,270,252
Published
Oct 27, 2026
6d ago

Get Started

dotnet add package MSTest --version 4.5.2
ProductVersions
.NET
net8.0net9.0
Universal Windows Platform
uap10.0.16299
Other
.NETFramework4.6.2

README

MSTest

MSTest is Microsoft supported Test Framework.

This package is a meta package that simplifies referencing all recommended MSTest packages.

Getting started

using Microsoft.VisualStudio.TestTools.UnitTesting;

[TestClass]
public class CalculatorTests
{
    [TestMethod]
    public void AddReturnsExpectedResult()
        => Assert.AreEqual(4, 2 + 2);
}

Supported platforms:

  • .NET 4.6.2+
  • .NET 8.0+
  • .NET 8.0 Windows.18362+ (WinUI)
  • UWP 10.0.16299
  • UWP 10.0.17763 with .NET 9+

Documentation

For installation and configuration guidance, see https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-getting-started.

For test authoring guidance, see https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-writing-tests.

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.The published metadata declares 18 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.