csharp-nunit
🎯Skillfrom github/awesome-copilot
Streamlines C# unit testing with NUnit, providing robust assertion methods, test case generation, and advanced mocking techniques for .NET projects.
Overview
C# NUnit is a skill that provides best practices for writing effective unit tests using the NUnit testing framework. It covers project setup, test structure with fixtures and lifecycle hooks, data-driven testing with multiple attribute types, and the NUnit constraint-based assertion model to help developers create clean, maintainable, and comprehensive test suites.
Key Features
- Complete Test Structure Guidance - Covers
[TestFixture],[Test],[SetUp],[TearDown],[OneTimeSetUp],[OneTimeTearDown], and[SetUpFixture]for proper test organization and lifecycle management - Rich Data-Driven Testing - Supports
[TestCase]for inline data,[TestCaseSource]for programmatic data,[Values]/[ValueSource]for parameter combinations, and[Random]/[Range]for numeric test values - Constraint-Based Assertions - Guides usage of the preferred
Assert.Thatwith constraints likeIs.EqualTo,Is.SameAs,Contains.Item, plus classic assertions andCollectionAssert - Naming Conventions - Enforces the
MethodName_Scenario_ExpectedBehaviorpattern and separate test project naming with[ProjectName].Tests
Who is this for?
This skill is for C# developers who use NUnit for testing and want to follow current best practices for test organization, data-driven testing, and assertion patterns. It is particularly valuable for teams standardizing their testing approach or developers learning NUnit's modern features including combinatorial and pairwise testing strategies.
Same repository
github/awesome-copilot(315 items)
Installation
npx vibeindex add github/awesome-copilot --skill csharp-nunitnpx skills add github/awesome-copilot --skill csharp-nunit~/.claude/skills/csharp-nunit/SKILL.mdSKILL.md
More from this repository10
A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.
A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.
Generates comprehensive Product Requirements Documents (PRDs) by systematically analyzing requirements and crafting detailed technical specifications
Expert technical writer guided by the Diataxis framework, creating tutorials, how-to guides, reference docs, and explanation pages for software documentation.
Generates Excalidraw diagrams from natural language descriptions, creating visual representations of processes, systems, relationships, and ideas.
A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.
Provides Spring Boot best practices covering project setup, dependency injection, REST API design, data access with JPA, security configuration, and testing strategies.
Creates optimized multi-stage Dockerfiles for any language or framework, separating builder and runtime stages to produce smaller, more secure container images.
Creates README.md files for projects.
Merges mature lessons from domain memory files into instruction files, consolidating knowledge with minimal redundancy across global, user, and workspace scopes.