---
title: "mstest.testframework 4.0.0 Breaking Changes on NuGet"
description: "What each mstest.testframework release removed, renamed or changed: 120 breaking changes in 3 versions on NuGet, each with its source."
canonical_url: https://since.dev/packages/nuget/mstest.testframework
last_updated: 2026-12-04
---

# mstest.testframework breaking changes

mstest.testframework 4.0.0 (October 7, 2025) is its newest release with breaking changes, 106 of them. The first: Drops .NET Core 3.1 through .NET 7 target frameworks in MSTest.TestFramework 4.0.0. Every breaking API change we have recorded in mstest.testframework on NuGet: 120 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.5.3`, released November 11, 2026. [Source repository](https://github.com/microsoft/testfx)

Its 3.0.0-preview-20221110-04 release drops .NET 5. [.NET end of life dates](https://since.dev/calendar/dotnet.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 106 breaking changes in 1 version.

## mstest.testframework 4.0.0 breaking changes

mstest.testframework 4.0.0, released October 7, 2025: 106 breaking changes.

- **Removed**  

The minimum supported .NET version is now .NET 8. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Removed** `ClassCleanupAttribute`  

ClassCleanupAttribute constructors taking ClassCleanupBehavior are removed in MSTest.TestFramework 4.0.0 [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Removed** `ClassCleanupLifecycle`  

MSTest v4 no longer reads these settings, so they have no effect. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Removed** `DataTestMethodAttribute`  

DataTestMethodAttribute constructors that take a display name are removed in MSTest.TestFramework 4.0.0 [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ReplaceNullChars`  

Assert.ReplaceNullChars is removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowsException`  

Use Assert.Throws instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowsExceptionAsync`  

Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowsExceptionAsync was removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute.CleanupBehavior`  

Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute.CleanupBehavior was removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior`  

ClassCleanup now runs only at the end of the test class; use AssemblyCleanup for end-of-assembly work. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupExecutionAttribute`  

Remove any assembly-level ClassCleanupExecution attribute from your code. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.ConditionBaseAttribute.ShouldRun`  

Use ConditionBaseAttribute.IsConditionMet instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.CssIterationAttribute`  

CssIterationAttribute is removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.CssProjectStructureAttribute`  

CssProjectStructureAttribute is removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.TestIdGenerationStrategy`  

DataRowAttribute.TestIdGenerationStrategy property is removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.UnfoldingStrategy`  

Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.UnfoldingStrategy was removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataAttribute.UnfoldingStrategy`  

Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataAttribute.UnfoldingStrategy was removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.ExpectedExceptionAttribute`  

Use Assert.Throws instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.ExpectedExceptionBaseAttribute`  

Use Assert.Throws instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.GenericParameterHelper`  

Microsoft.VisualStudio.TestTools.UnitTesting.GenericParameterHelper was removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureException`  

InternalTestFailureException is removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceUnfoldingCapability`  

Set UnfoldingStrategy on TestMethodAttribute instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod.Invoke`  

Use ITestMethod.InvokeAsync instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.ManagedMethod`  

Use TestContext.TestName instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.ManagedType`  

Use TestContext.FullyQualifiedTestClassName instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.TestDeploymentDir`  

Use DeploymentDirectory instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.TestDir`  

Use TestRunDirectory instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.TestLogsDir`  

Use TestRunResultsDirectory instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.TestIdGenerationStrategy`  

Microsoft.VisualStudio.TestTools.UnitTesting.TestIdGenerationStrategy was removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.TestIdGenerationStrategyAttribute`  

TestIdGenerationStrategyAttribute is removed in MSTest.TestFramework 4.0.0 [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute.Execute`  

Custom test method attributes must override ExecuteAsync instead of Execute. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `Microsoft.VisualStudio.TestTools.UnitTesting.TestTimeout`  

Use int.MaxValue instead. [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/4.0.0)
- **Removed** `TestIdGenerationStrategy`  

Remove any assembly-level TestIdGenerationStrategy attribute. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Renamed**  

Update assembly references, binding redirects and coverage filters that use the old names. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Renamed** `TestContext.Properties.Contains`  

TestContext.Properties.Contains is replaced by ContainsKey in MSTest.TestFramework 4.0.0 [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Renamed** `UITestMethodAttribute.Execute`  

Derived classes must override ExecuteAsync instead of Execute. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Behavior changed**  

Add Microsoft.NET.Test.Sdk manually if you still need VSTest support. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Behavior changed**  

Test runs hang when a foreground thread runs forever under AppDomain isolation in MSTest.TestFramework 4.0.0 [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Behavior changed**  

Fix the underlying load failure, often a missing or mismatched dependency. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Behavior changed**  

Set Inherited = false on custom attributes that should not apply to overrides. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Behavior changed** `ConditionBaseAttribute.IgnoreMessage`  

Remove overrides and set the property instead, for example in the constructor. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Behavior changed** `ITestDataSource.GetDisplayName`  

Default display name for custom data sources includes data row arguments in MSTest.TestFramework 4.0.0 [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Behavior changed** `TestCase.Id`  

Test IDs change, which can affect tools tracking failures over time. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Behavior changed** `TestContext.FullyQualifiedTestClassName`  

TestContext.FullyQualifiedTestClassName throws in assembly initialize in MSTest.TestFramework 4.0.0 [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Behavior changed** `TestContext.TestName`  

TestContext.TestName throws in assembly and class initialize in MSTest.TestFramework 4.0.0 [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Default changed**  

Several analyzers now default to Warning severity instead of Info in MSTest.TestFramework 4.0.0 [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Default changed** `DisableAppDomain`  

Set DisableAppDomain to false in runsettings or testconfig.json to keep AppDomain isolation. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Default changed** `TreatDiscoveryWarningsAsErrors`  

TreatDiscoveryWarningsAsErrors defaults to true in MSTest.TestFramework 4.0.0 [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Configuration changed**  

Update any tools that read the executor URI. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Configuration changed** `DisableAppDomain`  

Move the DisableAppDomain element under RunSettings/RunConfiguration. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)
- **Signature changed** `Assert`  

Use string interpolation instead of format arguments. [learn.microsoft.com](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4)

And 56 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## mstest.testframework 3.0.0 breaking changes

mstest.testframework 3.0.0, released December 6, 2022: 6 breaking changes.

- **Signature changed** `Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual`  

Was static void AreEqual(object expected, object actual) static void AreEqual(object expected, object actual, string message) static void AreEqual(object expected, object actual, string message, object\[\] parameters); now static void... [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/3.0.0)
- **Signature changed** `Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotEqual`  

Was static void AreNotEqual(object notExpected, object actual) static void AreNotEqual(object notExpected, object actual, string message) static void AreNotEqual(object notExpected, object actual, string message, object\[\] parameters); now... [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/3.0.0)
- **Signature changed** `Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotSame`  

Was static void AreNotSame(object notExpected, object actual) static void AreNotSame(object notExpected, object actual, string message) static void AreNotSame(object notExpected, object actual, string message, object\[\] parameters); now... [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/3.0.0)
- **Signature changed** `Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreSame`  

Was static void AreSame(object expected, object actual) static void AreSame(object expected, object actual, string message) static void AreSame(object expected, object actual, string message, object\[\] parameters); now static void... [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/3.0.0)
- **Signature changed** `Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.GetDisplayName`  

Was string GetDisplayName(System.Reflection.MethodInfo methodInfo, object\[\] data); now virtual string GetDisplayName(System.Reflection.MethodInfo methodInfo, object\[\] data). [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/3.0.0)
- **Signature changed** `Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod.GetAttributes`  

Was AttributeType\[\] GetAttributes\<AttributeType>(bool inherit); now TAttributeType\[\] GetAttributes\<TAttributeType>(bool inherit). [nuget.org](https://www.nuget.org/packages/MSTest.TestFramework/3.0.0)

## mstest.testframework 3.0.0-preview-20221110-04 breaking changes

mstest.testframework 3.0.0-preview-20221110-04, released December 6, 2022: 8 breaking changes.

- **Removed**  

Support for UWP versions before 16299 was dropped. Apps targeting older UWP versions must upgrade. [github.com](https://github.com/microsoft/testfx/releases/tag/v3.0.0-preview-20221110-04)
- **Removed**  

Support for WinUI versions before 18362 was dropped. Apps targeting older WinUI versions must upgrade. [github.com](https://github.com/microsoft/testfx/releases/tag/v3.0.0-preview-20221110-04)
- **Removed**  

Support for .NET Standard 1.0 was dropped, with the minimum moved to 2.0. Projects targeting 1.0 must target 2.0 or later. [github.com](https://github.com/microsoft/testfx/releases/tag/v3.0.0-preview-20221110-04)
- **Removed**  

Support for .NET Framework 4.5 was dropped, with the minimum moved to 4.6.2. Projects targeting 4.5 must retarget to 4.6.2 or later. [github.com](https://github.com/microsoft/testfx/releases/tag/v3.0.0-preview-20221110-04)
- **Removed**  

Support for .NET 5 was dropped. Projects targeting .NET 5 must move to netcoreapp3.1 or .NET 6. [github.com](https://github.com/microsoft/testfx/releases/tag/v3.0.0-preview-20221110-04)
- **Behavior changed**  

Test IDs are generated with a new strategy. Previous strategies can be selected again, so tests relying on old IDs may need that setting. [github.com](https://github.com/microsoft/testfx/releases/tag/v3.0.0-preview-20221110-04)
- **Behavior changed**  

Timeout behavior is now the same on every target framework. Test timeouts may behave differently than before on some frameworks. [github.com](https://github.com/microsoft/testfx/releases/tag/v3.0.0-preview-20221110-04)
- **Signature changed** `DataRowAttribute`  

The set of DataRowAttribute constructors changed. Code calling constructors that were removed must be updated. [github.com](https://github.com/microsoft/testfx/releases/tag/v3.0.0-preview-20221110-04)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
