
writing-mstest-tests
ALWAYS USE when asked to fix, rewrite, update, improve, modernize
by dotnetFree
Description
writing-mstest-tests is an agent skill that helps write and fix MSTest unit tests in C# and .NET. It applies when someone asks to fix, rewrite, update, improve or modernise MSTest tests, to show corrected code, or to explain an existing test or MSTest configuration. The skill keeps the code within the API level and conventions of the project's installed test stack, so it does not suggest attributes or helpers the project cannot use. It also reads the repository's own overlay of test rules where one is set up, so a team's conventions take priority over general defaults. The skill is useful when test code has grown messy, when a team is updating its tests, or when a developer wants a clear explanation of how an existing test works. It is for test authors and reviewers who use MSTest rather than another test framework. The source is the dotnet/skills repository on GitHub.…
Highlights
- Fixes, rewrites and modernises MSTest test code
- Stays within the project's installed test stack
- Explains existing tests and MSTest configuration
- Reads a repository overlay of team test rules
Ratings & Reviews
No ratings yet
Be the first to rate writing-mstest-tests.
People also visit

migrate-nunit-to-mstest
Convert .NET tests from NUnit 3/4 to MSTest v4 while preserving VSTest or MTP

migrate-mstest-v1v2-to-v3
Use this skill before answering or editing whenever an MSTest v1/v2 project is

run-tests
ALWAYS USE before running .NET tests or answering with a test command or flags
writing-mstest-tests FAQ
What is MSTest?
The unit test framework for .NET that comes from Microsoft. This skill helps you write and fix tests written with it.
When should I use it?
When you ask an agent to fix, rewrite, update or improve MSTest tests, show corrected test code, or explain existing tests or MSTest configuration.
Will it use features my project does not have?
No. It keeps the code within the API level and conventions of the project's installed test stack.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill writing-mstest-tests in a terminal.
Which security audits has it passed?
Gen Agent Trust Hub Pass, Socket Pass, Snyk Pass.
What are the best writing-mstest-tests alternatives?
Popular alternatives to writing-mstest-tests include migrate-xunit-to-mstest, migrate-nunit-to-mstest and migrate-mstest-v3-to-v4. See all writing-mstest-tests alternatives










