MSTest.TestAdapter 4.5.1

MSTest.TestAdapter

MSTest is Microsoft supported Test Framework.

This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.

Getting started

After referencing both MSTest.TestAdapter and MSTest.TestFramework, define tests with [TestClass] and [TestMethod]:

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+

Runsettings on Microsoft.Testing.Platform

When using the MSTest runner on Microsoft.Testing.Platform, .runsettings files can configure MSTest through the MSTest section (or its MSTestV2 alias), test parameters through TestRunParameters, and supported settings through RunConfiguration.

VSTest ISettingsProvider extensions are not invoked. Other top-level sections, such as Playwright, produce a warning and are not applied by MSTest. Use the extension's native Microsoft.Testing.Platform configuration when available. VSTest loggers, data collectors, and unsupported RunConfiguration entries retain their own warnings.

Documentation

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

For information about running tests, see https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-running-tests.

No packages depend on MSTest.TestAdapter.

.NET Framework 4.6.2

.NET 8.0

.NET 8.0

.NET 9.0

.NET 9.0

UAP 10.0.16299

Version Downloads Last updated
4.5.1 10 10/08/2026
4.4.1 18 09/17/2026
4.4.0 22 09/03/2026
4.3.3 27 07/28/2026
4.3.2 27 07/15/2026
4.3.0 18 07/09/2026
4.2.3 30 05/16/2026
4.2.2 43 04/30/2026
4.2.1 39 04/07/2026
4.1.0 57 02/05/2026
4.0.2 48 12/19/2025
4.0.1 48 12/15/2025
4.0.0 48 12/20/2025
4.0.0-preview.25480.4 49 12/13/2025
4.0.0-preview.25465.3 45 12/20/2025
4.0.0-preview.25454.2 53 12/20/2025
4.0.0-preview.25452.10 6 10/05/2026
4.0.0-preview.25415.9 52 12/20/2025
4.0.0-preview.25372.6 48 12/13/2025
4.0.0-preview.25358.7 41 12/11/2025
3.11.1 46 12/20/2025
3.11.0 5 09/28/2026
3.10.5 47 12/13/2025
3.10.4 48 12/14/2025
3.10.3 43 12/13/2025
3.10.2 50 12/23/2025
3.10.1 38 12/27/2025
3.10.0 50 12/20/2025
3.9.3 43 12/13/2025
3.9.2 38 12/27/2025
3.9.1 47 12/15/2025
3.9.0 37 12/12/2025
3.9.0-preview.25167.10 39 12/14/2025
3.8.3 38 12/27/2025
3.8.2 35 12/21/2025
3.8.1 39 12/27/2025
3.8.0 42 12/13/2025
3.7.3 44 12/19/2025
3.7.2 37 12/12/2025
3.7.1 37 12/11/2025
3.7.0 39 12/27/2025
3.6.4 41 12/25/2025
3.6.3 49 12/13/2025
3.6.2 2 09/27/2026
3.6.1 39 12/15/2025
3.6.0 45 12/11/2025
3.5.2 43 12/27/2025
3.5.1 44 12/13/2025
3.5.0 38 12/24/2025
3.5.0-preview.24325.7 49 12/12/2025
3.4.3 40 12/26/2025
3.4.2 47 12/15/2025
3.4.1 42 12/16/2025
3.4.0 49 12/18/2025
3.3.1 46 12/11/2025
3.3.0 52 12/13/2025
3.3.0-preview.24164.4 48 12/20/2025
3.2.2 46 12/12/2025
3.2.1 47 12/13/2025
3.2.0 40 12/13/2025
3.2.0-preview.24069.3 37 12/13/2025
3.2.0-preview.23623.1 40 12/13/2025
3.2.0-preview.23622.1 46 12/15/2025
3.1.1 35 12/25/2025
3.0.4 48 12/27/2025
3.0.3 48 12/16/2025
3.0.2 47 12/23/2025
3.0.1 49 12/13/2025
3.0.0 42 12/27/2025
3.0.0-preview-20221122-01 42 12/20/2025
3.0.0-preview-20221110-04 44 12/20/2025
2.3.0-preview-20220810-02 44 12/11/2025
2.2.10 40 12/13/2025
2.2.10-preview-20220414-01 34 12/13/2025
2.2.9 55 12/13/2025
2.2.9-preview-20220210-07 55 12/13/2025
2.2.8 40 12/13/2025
2.2.7 54 12/28/2025
2.2.6 35 12/13/2025
2.2.5 38 12/27/2025
2.2.5-preview-20210605-01 41 12/20/2025
2.2.5-preview-20210604-01 46 12/16/2025
2.2.5-preview-20210531-02 43 12/27/2025
2.2.4 2 10/05/2026
2.2.4-preview-20210513-02 46 12/20/2025
2.2.4-preview-20210331-02 36 12/14/2025
2.2.3 45 12/13/2025
2.2.2 36 12/13/2025
2.2.1 39 12/15/2025
2.2.0-preview-20210115-03 44 12/22/2025
2.2.0-preview-20201126-03 50 12/20/2025
2.1.2 38 12/24/2025
2.1.1 40 12/27/2025
2.1.0 52 12/11/2025
2.1.0-beta2 40 12/20/2025
2.1.0-beta 2 09/30/2026
2.0.0 43 12/26/2025
2.0.0-beta4 39 12/15/2025
2.0.0-beta2 39 12/11/2025
1.4.0 41 12/13/2025
1.4.0-beta 44 12/13/2025
1.3.2 38 12/15/2025
1.3.1 39 12/12/2025
1.3.0 42 12/13/2025
1.3.0-beta2 44 12/15/2025
1.2.1 38 12/27/2025
1.2.0 41 12/16/2025
1.2.0-beta3 46 12/14/2025
1.2.0-beta 36 12/15/2025
1.1.18 46 12/13/2025
1.1.17 42 12/27/2025
1.1.14 42 12/27/2025
1.1.13 38 12/27/2025
1.1.12 36 12/24/2025
1.1.11 38 12/20/2025
1.1.10-rc2 42 12/12/2025
1.1.9-rc2 38 12/12/2025
1.1.8-rc 46 12/27/2025
1.1.6-preview 49 12/14/2025
1.1.5-preview 44 12/16/2025
1.1.4-preview 48 12/13/2025
1.1.3-preview 47 12/20/2025
1.1.1-preview 42 12/19/2025
1.0.3-preview 44 12/15/2025
1.0.2-preview 41 12/12/2025
1.0.0-preview 41 12/18/2025