Lightlines
By dotnet

writing-mstest-tests

dotnet2.5k installs

Clearer MSTest tests that fit your installed version.

What it does

Corrects and explains MSTest tests while respecting the project's installed API version and conventions.

When to use it

Use to fix or modernize existing MSTest tests, explain assertion APIs and lifecycle patterns, or resolve MSTest analyzer diagnostics.

How to use it

Give it an MSTest question or existing test code; it returns corrected code and explanations, with complete representative method bodies when requested.

Uses

Latest review

What you need · 1

For project-backed corrections, uses the existing MSTest installation and requires checking its exact version before selecting APIs.


Access · 1

This skill

MSTest analyzer reference

Read

Reads official MSTest analyzer guidance