ClaudSkills / Engineering / testing

Writing Mstest Tests

Category: Engineering  ·  Sub-category: testing
Best practices for writing new MSTest 3.x/4.x unit tests and implementing concrete fixes in existing MSTest code. Use when the user asks to write, create, implement, repair, or modernize tests (including fix-it prompts such as 'something seems off, fix issues'). Primary fit for direct code changes like correcting swapped Assert.AreEqual argument order, replacing outdated assertion patterns, and converting DynamicData from IEnumerable<object[]> to ValueTuple-based data sets. Covers modern assertions, data-driven tests, test lifecycle, MSTest.Sdk, sealed classes, Assert.Throws, DynamicData with ValueTuples, TestContext, and conditional execution. Do NOT use for broad test quality audits, flaky-test investigations, or test smell detection reports — use test-anti-patterns instead.

What this skill does

Writing Mstest Tests is a community-contributed Claude Code skill in the testing sub-category. It ships as a SKILL.md file that Claude Code auto-discovers under ~/.claude/skills/writing-mstest-tests/ and loads when your prompt matches the skill's trigger.

When to invoke it: Use when the user asks to write, create, implement, repair, or modernize tests (including fix-it prompts such as 'something seems off, fix issues'). Primary fit for direct code changes like correcting swapped Assert.

Who uses this skill

The Writing Mstest Tests skill is built for software engineers, backend developers, full-stack teams, and technical leads building and maintaining production systems. It is part of the open ClaudSkills registry, a community-curated catalog of 56,000+ capabilities you can install for Claude Code — the Claude CLI agent.

How to install

Free

Manual install (2 steps)

mkdir -p ~/.claude/skills/writing-mstest-tests
curl -L https://claudskills.com/skills/writing-mstest-tests/SKILL.md \
  -o ~/.claude/skills/writing-mstest-tests/SKILL.md

Or just download SKILL.md directly and drop it into ~/.claude/skills/writing-mstest-tests/. Claude Code auto-discovers it on next session.

Skills live at ~/.claude/skills/writing-mstest-tests/SKILL.md on macOS/Linux, or %USERPROFILE%\.claude\skills\writing-mstest-tests\SKILL.md on Windows. See the full install guide for step-by-step instructions.

Pro

One-click install via the desktop app

The ClaudSkills desktop app installs any skill directly into ~/.claude/skills/ with one click — no terminal required. Pro starts at $9/mo or $149 lifetime.

Pro

For the full experience including quality scoring and one-click install features for each skill — upgrade to Pro.

More Engineering skills

Browse all Engineering skills in the ClaudSkills registry, or explore these other picks from the same category:

Browse all Engineering skills → Top 100 skills
Part of ClaudSkills — the open registry for Claude Code skills.  ·  What's New  ·  Install guide  ·  About  ·  llms.txt

Part of Acreator Store — Adam Lankamer's AI tools: GifPerfect · AspectPerfect · SlomoPerfect · Ucaption · UTagger · AutoXPoster · TestYourSkills