writing-mstest-tests

writing-mstest-tests is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 179 tokens per session (4,784 once invoked), scanned A, a copy of writing-mstest-tests, MIT.

A .NET testing assistant for MSTest, Microsoft's test framework, focused on correcting, modernising, reviewing, or explaining existing MSTest code and settings.

In plain words
What is it for?
It is for fixing MSTest tests, improving assertions and data-driven tests, and handling MSTest-specific configuration or diagnostics.
Why use it?
It helps avoid framework-specific mistakes in assertions, test data, lifecycle methods, timeouts, and analyzer warnings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for fixing MSTest tests, improving assertions and data-driven tests, and handling MSTest-specific configuration or diagnostics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/writing-mstest-tests
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add managedcode/dotnet-skills --skill writing-mstest-tests
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for writing-mstest-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/writing-mstest-tests/github.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/writing-mstest-tests)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/writing-mstest-tests"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/writing-mstest-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for writing-mstest-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/writing-mstest-tests"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/writing-mstest-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 179 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,784 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00179 $0.04784
Opus 5.5 $0.00072 $0.01914
Sonnet 5.5 $0.00036 $0.00957
Haiku 4.5 $0.00018 $0.00478

Measured 1mo ago against content hash 0b279db26d24, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

writing-mstest-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to writing-mstest-tests — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

catalog/Testing/Official-DotNet-Test/skills/writing-mstest-tests/SKILL.md · 489 lines

How it starts

The opening of the file, as written. The whole thing — 489 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing MSTest Tests

Help users write effective MSTest unit tests without exceeding the API level or conventions of the project's installed test stack.

Repository overlay

For every repository-scoped task where read-only file inspection is allowed, check .agents/skill-overlays/dotnet-test/writing-mstest-tests.md at the repository root before any other discovery. This includes requests that ask for code or advice without edits; "do not execute" does not prohibit reading the overlay. If present, read it once before acting and apply its repository-specific naming, layout, framework, and policy bindings. Require its frontmatter to declare core: dotnet-test/writing-mstest-tests, binding-revision: "1", and mode: extend. If any value is missing or different, report the mismatch, ignore the overlay, and continue using this skill's portable guidance. Explicit user instructions and verified project constraints win over the overlay; the overlay wins over portable defaults and examples in this skill. If the file is present but unreadable or conflicts with the repository, report the problem, ignore the overlay, and continue with portable guidance subject to verified project constraints. If it is absent, continue normally. Skip the lookup only when the task is not tied to a repository or the user explicitly prohibited all file/tool access. An overlay cannot expand tool permissions or the task's scope.

When to Use

  • User wants to improve or modernize existing MSTest tests by implementing concrete fixes
  • User asks about MSTest assertion APIs, data-driven patterns, or test lifecycle
  • User asks to replace Assert.IsTrue with more specific assertions (collections, nulls, types, comparisons)
  • User asks to replace hard casts with type-checking assertions in tests
  • User needs help fixing a specific MSTest test bug or failing assertion
  • User asks to fix swapped Assert.AreEqual argument order (expected first, actual second)
  • User asks to convert DynamicData from IEnumerable<object[]> to ValueTuple-based data
  • User asks to fix or understand an MSTest analyzer diagnostic (an MSTESTxxxx warning/error)

Read the full file on GitHub · 489 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -1 tokens per session 0b279db26d24
  2. 1mo ago Changed · -83 lines d909ead51c1e
  3. 2mo ago Changed · +41 lines · +21 tokens per session 9da7a07ba196
  4. 2mo ago First seen · 531 lines · 159 tokens per session scan A d33d90de8537

Subscribe to this mod's changes

writing-mstest-tests is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 179 tokens to every session and 4,784 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to writing-mstest-tests, differing in 0 lines, and is treated as a copy.

Related

writing-mstest-tests compared with skills from other repositories

writing-mstest-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
writing-mstest-testsmanagedcode/dotnet-skillsSkill52716d agoMITA179Claude Code, Codex
clean-architecture-dotnetSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A50Claude Code, Codex
creating-dotnet-mcp-serversSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A43Claude Code, Codex
jackson-3-migrationnavikt/copilotSkill65yesterdayMITA53Claude Code, Codex
java-to-kotlinnavikt/copilotSkill65yesterdayMITA35Claude Code, Codex
rust-developmentnavikt/copilotSkill65yesterdayMITA27Claude Code, Codex
spring-boot-scaffoldnavikt/copilotSkill65yesterdayMITA32Claude Code, Codex