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 1 10/17/2026
4.4.1 1 10/17/2026
4.4.0 1 10/17/2026
4.3.3 2 09/24/2026
4.3.2 1 10/17/2026
4.3.0 1 10/17/2026
4.2.3 2 09/24/2026
4.2.2 1 10/17/2026
4.2.1 1 10/17/2026
4.1.0 1 10/17/2026
4.0.2 0 11/11/2025
4.0.1 0 10/14/2025
4.0.0 1 09/24/2026
4.0.0-preview.25480.4 0 09/30/2025
4.0.0-preview.25465.3 0 09/15/2025
4.0.0-preview.25454.2 0 09/04/2025
4.0.0-preview.25452.10 0 09/02/2025
4.0.0-preview.25415.9 0 08/15/2025
4.0.0-preview.25372.6 0 07/22/2025
4.0.0-preview.25358.7 0 07/08/2025
3.11.1 2 09/24/2026
3.11.0 0 10/01/2025
3.10.5 0 09/30/2025
3.10.4 0 09/02/2025
3.10.3 0 08/26/2025
3.10.2 0 08/12/2025
3.10.1 0 08/05/2025
3.10.0 0 07/29/2025
3.9.3 0 06/17/2025
3.9.2 0 06/10/2025
3.9.1 0 05/27/2025
3.9.0 0 05/20/2025
3.9.0-preview.25167.10 0 03/18/2025
3.8.3 0 03/17/2025
3.8.2 0 02/19/2025
3.8.1 0 02/18/2025
3.8.0 0 02/12/2025
3.7.3 0 01/27/2025
3.7.2 0 01/21/2025
3.7.1 0 01/13/2025
3.7.0 0 12/20/2024
3.6.4 1 09/24/2026
3.6.3 0 11/12/2024
3.6.2 1 09/24/2026
3.6.1 4 09/24/2026
3.6.0 0 09/11/2024
3.5.2 0 08/13/2024
3.5.1 0 08/05/2024
3.5.0 0 07/16/2024
3.5.0-preview.24325.7 0 06/25/2024
3.4.3 0 05/30/2024
3.4.2 1 09/24/2026
3.4.1 1 09/24/2026
3.4.0 0 05/23/2024
3.3.1 0 04/04/2024
3.3.0 0 04/03/2024
3.3.0-preview.24164.4 0 03/14/2024
3.2.2 0 02/22/2024
3.2.1 0 02/13/2024
3.2.0 0 01/24/2024
3.2.0-preview.24069.3 4 09/24/2026
3.2.0-preview.23623.1 0 12/23/2023
3.2.0-preview.23622.1 0 12/22/2023
3.1.1 0 07/14/2023
3.0.4 0 06/01/2023
3.0.3 0 05/25/2023
3.0.2 0 12/27/2022
3.0.1 0 12/20/2022
3.0.0 0 12/06/2022
3.0.0-preview-20221122-01 0 11/23/2022
3.0.0-preview-20221110-04 1 09/24/2026
2.3.0-preview-20220810-02 0 08/10/2022
2.2.10 0 04/26/2022
2.2.10-preview-20220414-01 0 04/14/2022
2.2.9 0 04/08/2022
2.2.9-preview-20220210-07 0 02/10/2022
2.2.8 1 09/24/2026
2.2.7 0 09/03/2021
2.2.6 0 08/25/2021
2.2.5 0 06/28/2021
2.2.5-preview-20210605-01 0 06/05/2021
2.2.5-preview-20210604-01 4 09/24/2026
2.2.5-preview-20210531-02 0 05/31/2021
2.2.4 0 05/25/2021
2.2.4-preview-20210513-02 0 05/17/2021
2.2.4-preview-20210331-02 0 04/02/2021
2.2.3 0 03/16/2021
2.2.2 0 03/15/2021
2.2.1 0 03/01/2021
2.2.0-preview-20210115-03 1 09/24/2026
2.2.0-preview-20201126-03 0 11/26/2020
2.1.2 0 06/08/2020
2.1.1 0 04/01/2020
2.1.0 0 02/03/2020
2.1.0-beta2 0 12/18/2019
2.1.0-beta 1 09/24/2026
2.0.0 2 09/24/2026
2.0.0-beta4 0 04/10/2019
2.0.0-beta2 0 02/15/2019
1.4.0 0 11/26/2018
1.4.0-beta 0 10/17/2018
1.3.2 0 06/06/2018
1.3.1 1 09/24/2026
1.3.0 0 05/11/2018
1.3.0-beta2 0 01/15/2018
1.2.1 0 04/05/2018
1.2.0 0 10/11/2017
1.2.0-beta3 0 08/09/2017
1.2.0-beta 0 06/29/2017
1.1.18 0 06/01/2017
1.1.17 0 04/21/2017
1.1.14 0 03/31/2017
1.1.13 0 03/10/2017
1.1.12 1 09/24/2026
1.1.11 0 02/17/2017
1.1.10-rc2 0 01/13/2017
1.1.9-rc2 0 01/11/2017
1.1.8-rc 0 12/20/2016
1.1.6-preview 1 09/24/2026
1.1.5-preview 0 11/08/2016
1.1.4-preview 0 10/11/2016
1.1.3-preview 0 09/30/2016
1.1.1-preview 0 09/16/2016
1.0.3-preview 0 08/05/2016
1.0.2-preview 0 07/22/2016
1.0.0-preview 0 05/27/2016