MSTest 4.4.0
Prefix Reserveddotnet add package MSTest --version 4.4.0
NuGet\Install-Package MSTest -Version 4.4.0
<PackageReference Include="MSTest" Version="4.4.0" />
<PackageVersion Include="MSTest" Version="4.4.0" />
<PackageReference Include="MSTest" />
paket add MSTest --version 4.4.0
#r "nuget: MSTest, 4.4.0"
#:package MSTest@4.4.0
#addin nuget:?package=MSTest&version=4.4.0
#tool nuget:?package=MSTest&version=4.4.0
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| Universal Windows Platform | uap10.0.16299 is compatible. |
-
.NETFramework 4.6.2
- Microsoft.NET.Test.Sdk (>= 18.9.0)
- Microsoft.Testing.Extensions.CodeCoverage (>= 18.11.0)
- Microsoft.Testing.Extensions.TrxReport (>= 2.4.0)
- MSTest.TestAdapter (>= 4.4.0)
- MSTest.TestFramework (>= 4.4.0)
-
net8.0
- Microsoft.NET.Test.Sdk (>= 18.9.0)
- Microsoft.Testing.Extensions.CodeCoverage (>= 18.11.0)
- Microsoft.Testing.Extensions.TrxReport (>= 2.4.0)
- MSTest.TestAdapter (>= 4.4.0)
- MSTest.TestFramework (>= 4.4.0)
-
net9.0
- Microsoft.NET.Test.Sdk (>= 18.9.0)
- Microsoft.Testing.Extensions.CodeCoverage (>= 18.11.0)
- Microsoft.Testing.Extensions.TrxReport (>= 2.4.0)
- MSTest.TestAdapter (>= 4.4.0)
- MSTest.TestFramework (>= 4.4.0)
-
UAP 10.0.16299
- Microsoft.Testing.Extensions.CodeCoverage (>= 18.11.0)
- MSTest.TestAdapter (>= 4.4.0)
- MSTest.TestFramework (>= 4.4.0)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on MSTest:
| Package | Downloads |
|---|---|
|
Snapshooter.MSTest
MSTest Snapshooter is a flexible snapshot testing tool for .Net unit tests with MSTest. It creates and asserts snapshots (json format) within MSTest unit tests. |
|
|
MSTestEnhancer
MSTestEnhancer helps you to write unit tests without naming any method. You can write method contract descriptions instead of writing confusing test method name when writing unit tests. |
|
|
XrmUnitTest.MSTest
Contains MS Test Provider classes for Dataverse/XRM Unit Testing Library |
|
|
DataverseUnitTest.MSTest
Contains MS Test Provider classes for Dataverse/XRM Unit Testing Library |
|
|
Saintber.TestTools
提供測試輔助工具 |
GitHub repositories (118)
Showing the top 20 popular GitHub repositories that depend on MSTest:
| Repository | Stars |
|---|---|
|
JustArchiNET/ArchiSteamFarm
C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
|
|
|
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop, and Embedded apps from a single C#/XAML codebase. Work from any IDE/CLI with Hot Reload, Visual Designer, MCPs, and Skills built for modern .NET workflows. 200M+ NuGet downloads.
|
|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
rmcrackan/Libation
Libation: Liberate your Library
|
|
|
Live-Charts/LiveCharts2
Beautiful, interactive charts, maps, and gauges. One API for every .NET UI framework.
|
|
|
dotnet/skills
Repository for skills to assist AI coding agents with .NET and C#
|