Skip to main content

writing-mstest-tests

Review, modernize, fix, or explain MSTest APIs using the installed version, including classic non-SDK packages.config projects and older MSTest 3.x. ALWAYS USE to "fix swapped Assert.AreEqual arguments", "replace ExpectedException with Assert.Throws/ThrowsExactly", choose specific assertions, fix StringAssert/CollectionAssert/IsInstanceOfType, modernize DataRow or DynamicData, configure lifecycle/TestContext/cancellation/retry/parallelization, set up MSTest.Sdk, or fix MSTESTxxxx diagnostics. Preserves FixtureBase, Moq/NBuilder, project format, and package versions unless migration is requested. DO NOT USE for generating new tests (code-testing-agent), audits, running tests, framework migration, xUnit/NUnit/TUnit, or non-.NET.

Jump to install

Source facts

Repository
dotnet/skills
Last source activity
August 12, 2026 at 15:38
Detected SKILL.md language
English
Stars
5,168
Forks
385

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.