Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Converts xUnit.net v2 or v3 .NET tests to MSTest v4 while preserving the VSTest or MTP test runner.
Use this skill ↓48% 61%+13 ptsof test cases passed
Passed 14 of 23 test cases with the skill, and 11 of 23 without it.
Convert this xUnit test assertion to MSTest v4: `var ex = Assert.ThrowsAny<KeyNotFoundException>(() => cache.Get("missing"));`. Base models might map `ThrowsAny` to `ThrowsExactly`. Which MSTest v4 assertion method allows derived exception types?
Uses Assert.Throws to replace xUnit Assert.ThrowsAny.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Convert xUnit.net v2 or v3 tests to MSTest v4 without changing the target framework or test platform. A successful migration builds, discovers the same tests, and preserves pass/fail results and execution semantics.
Use this skill only when the project contains xUnit packages or source and the user wants MSTest. If the project already uses MSTest and contains no xUnit tests, report that no framework migration is needed and make no changes.
Do not combine this framework conversion with a target-framework upgrade or VSTest/MTP migration. Complete and verify one migration before starting another.
Apply these before the mechanical mapping:
| Detected state | Required action |
|---|---|
| No xUnit package, namespace, attribute, or fixture remains | Stop. Make no file changes, report that migration is unnecessary, and run the existing dotnet test command once to prove the already-MSTest project is healthy. |
| Source uses VSTest | Keep the existing VSTest property/configuration. Prefer retaining and updating a source project's explicit Microsoft.NET.Test.Sdk pin; a repository that intentionally relies on the MSTest metapackage's transitive dependency may keep that convention. Do not introduce MTP properties. |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.