csharp-unit-test

Community

Standardize xUnit tests for reliable C# code.

AuthorRushuiGuan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Writing and maintaining xUnit v3 unit tests in C# can be inconsistent across methods and projects. This skill codifies clear conventions to ensure each test mirrors the same structure and naming patterns.

Core Features & Use Cases

  • One file per method under test, named ClassName_MethodName.cs.
  • Use [Theory] + [InlineData] for multiple inputs; [Fact] for single-case tests.
  • Guiding test naming and file layout to improve readability and maintainability across a codebase.

Quick Start

Create a new test file named ClassName_MethodName.cs in the test project and name tests by their scenario.

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: csharp-unit-test
Download link: https://github.com/RushuiGuan/claude/archive/main.zip#csharp-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 471,000+ vetted skills library on demand.