mcaf-dotnet-mstest

Manage .NET MSTest development, execution, and repair with runner compatibility.

4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/managedcode/MCPGateway --skill mcaf-dotnet-mstest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcaf-dotnet-mstest
Source: https://github.com/managedcode/MCPGateway/tree/main/.codex/skills/mcaf-dotnet-mstest
Command: npx skills add https://github.com/managedcode/MCPGateway --skill mcaf-dotnet-mstest

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing, running, and repairing .NET tests specifically for projects utilizing the MSTest framework, ensuring test integrity and compatibility.

Core Features & Use Cases

  • MSTest Framework Support: Handles projects using MSTest.Sdk, MSTest packages, and common MSTest attributes ([TestClass], [TestMethod]).
  • Runner Compatibility: Manages transitions and configurations between VSTest and the newer Microsoft.Testing.Platform runners.
  • Use Case: When a .NET project's tests fail due to runner configuration issues or when new MSTest tests need to be added, this Skill provides the necessary commands and guidance to resolve the problem.

Quick Start

Use the mcaf-dotnet-mstest skill to add a new MSTest regression test to the project.

Frequently Asked Questions about mcaf-dotnet-mstest

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write and run .NET tests using the MSTest framework?

To run .NET tests using the MSTest framework, you use projects configured with MSTest.Sdk or MSTest packages, applying attributes like [TestClass] and [TestMethod] to define and execute test cases.

How do I migrate VSTest .NET test projects to the Microsoft.Testing.Platform runner?

Migrating VSTest .NET test projects to the Microsoft.Testing.Platform runner requires updating runner configurations to ensure test execution compatibility and resolve configuration-related test failures.

Does MSTest support data-driven testing for dotnet projects?

MSTest supports data-driven testing for dotnet projects by utilizing the [DataRow] attribute and DynamicData, allowing you to pass multiple data sets into a single test method for broader coverage.

Why do my MSTest unit tests fail after runner configuration changes in CI/CD?

MSTest unit tests may fail after runner configuration changes due to incompatibilities between VSTest and Microsoft.Testing.Platform runners, requiring configuration adjustments to restore execution.

What is the best way to add a regression test to a .NET project using MSTest?

Adding a regression test to a .NET project using MSTest involves creating a test class with [TestClass] and adding a method decorated with [TestMethod] to verify specific functionality.

Can I manage test automation for dotnet projects using MSTest.Sdk?

Yes, you can manage test automation for dotnet projects using MSTest.Sdk, which provides the necessary framework dependencies and attributes to build, execute, and repair automated tests.