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.

跳到安装

来源信息

仓库
dotnet/skills
最近来源活动
2026年8月12日 15:38
检测到的 SKILL.md 语言
英语
星标
5,190
分支
387

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。