mstest-unit-test

Community

Write consistent, maintainable MSTest unit tests easily

Authora35506322
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the common pain point of inconsistent, low-quality unit tests in .NET MSTest projects, ensuring tests are maintainable, reliable, and follow industry-standard best practices for testing adapters, helpers, pure functions, and repository logic.

Core Features & Use Cases

  • Standardized Test Structure: Provides clear folder and naming conventions for MSTest test projects to improve organization and readability.
  • Integrated Mocking & In-Memory DB Support: Includes guidance for using NSubstitute to mock dependencies and Entity Framework Core InMemory for database-related unit tests.
  • Clear Scope Boundaries: Explicitly directs endpoint handler testing to integration tests instead of unit tests, avoiding redundant or flaky test suites.
  • Use Case: For example, when building a .NET API that integrates with external services, use this Skill to write unit tests for your adapter classes that mock HTTP clients and configuration, ensuring tests run quickly without external dependencies.

Quick Start

Use the mstest-unit-test skill to write a unit test for the YouBikeAdapter's GetYouBikeImmediateAsync method that mocks the HTTP client and validates the returned data count.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mstest-unit-test
Download link: https://github.com/a35506322/Lab.Todo/archive/main.zip#mstest-unit-test

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.