csharp-mstest

Modern unit testing with MSTest 3.x/4.x using current APIs and best practices.

github ↓ 8.7k
Claude Code
View source ↗

What it does

  • Use a separate test project with naming convention [ProjectName].Tests
  • Reference MSTest 3.x+ NuGet packages (includes analyzers)
  • Consider using MSTest.Sdk for simplified project setup
  • Run tests with dotnet test
  • Use [TestClass] attribute for test classes
  • Seal test classes by default for performance and design clarity
  • Use [TestMethod] for test methods (prefer over [DataTestMethod])

Requirements & configuration

  • // TestDataRow - when you need custom display names or metadata
  • Cancellation Token
  • // ❌ Ignoring cancellation token

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Modern unit testing with MSTest 3.x/4.x using current APIs and best practices.

Source

Repository: https://github.com/github/awesome-copilot

csharp-mstest FAQ

What does the csharp-mstest skill do?

Get best practices for MSTest 3.x/4.x unit testing, including modern assertion APIs and data-driven tests Use a separate test project with naming convention [ProjectName].Tests Reference MSTest 3.x+ NuGet packages (includes analyzers)

What does csharp-mstest require?

// TestDataRow - when you need custom display names or metadata Cancellation Token // ❌ Ignoring cancellation token

How do I install csharp-mstest?

Run: npx -y skills add https://github.com/github/awesome-copilot --skill csharp-mstest --agent claude-code — the source lives at github.com/github/awesome-copilot.

Maintain csharp-mstest?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

csharp-mstest on getagentictools
[![csharp-mstest on getagentictools](https://getagentictools.com/badge/skills/github-awesome-copilot-csharp-mstest.svg)](https://getagentictools.com/skills/github-awesome-copilot-csharp-mstest?ref=badge)
npx agentictools info skills/github-awesome-copilot-csharp-mstest

The second line is the CLI lookup for this page — handy in READMEs and docs.