
Description
Migrate xUnit to MSTest is an agent skill that converts .NET tests from xUnit.net v2 or v3 to MSTest v4 without changing the target framework or the test platform. A successful migration builds, discovers the same tests, and keeps pass and fail results and execution behavior the same. The skill covers replacing the xunit packages and mapping Fact, Theory, InlineData and MemberData to their MSTest equivalents. It only applies when the project contains xUnit packages or source and the user wants MSTest. If the project already uses MSTest and has no xUnit tests, the skill reports that no framework migration is needed and makes no changes. The skill keeps the work to one step. It does not combine the framework conversion with a target-framework upgrade or a VSTest-to-MTP migration, and it asks that each change be completed and verified before the next one begins. It works inside a defined workspace contract that tells the agent where to find the user's projects and source. It is part of the dotnet/skills repository on GitHub.…
Highlights
- Converts xUnit v2 or v3 tests to MSTest v4
- Maps Fact, Theory, InlineData and MemberData
- Keeps the same target framework and test platform
- One migration verified before the next starts
Ratings & Reviews
No ratings yet
Be the first to rate migrate-xunit-to-mstest.
People also visit

migrate-nunit-to-mstest
Convert .NET tests from NUnit 3/4 to MSTest v4 while preserving VSTest or MTP

migrate-mstest-v1v2-to-v3
Use this skill before answering or editing whenever an MSTest v1/v2 project is

migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks
migrate-xunit-to-mstest FAQ
What does this skill do?
It converts a project's xUnit tests to MSTest v4, checks that the same tests are discovered and results match, and keeps the target framework and runner unchanged.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill migrate-xunit-to-mstest in your project.
Is it free?
Yes. The skill page lists its pricing as Free.
When does it do nothing?
When the project already uses MSTest and has no xUnit tests. The skill then reports that no framework migration is needed.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best migrate-xunit-to-mstest alternatives?
Popular alternatives to migrate-xunit-to-mstest include migrate-nunit-to-mstest, migrate-vstest-to-mtp and writing-mstest-tests. See all migrate-xunit-to-mstest alternatives










