csharp-nunit

NUnit best practices for standard and data-driven unit testing in .NET projects.

github ↓ 8.8k
Claude Code
View source ↗

What it does

  • Use a separate test project with naming convention [ProjectName].Tests
  • Reference Microsoft.NET.Test.Sdk, NUnit, and NUnit3TestAdapter packages
  • Create test classes that match the classes being tested (e.g., CalculatorTests for Calculator)
  • Use .NET SDK test commands: dotnet test for running tests
  • Apply [TestFixture] attribute to test classes
  • Use [Test] attribute for test methods
  • Follow the Arrange-Act-Assert (AAA) pattern

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

NUnit best practices for standard and data-driven unit testing in .NET projects.

Source

Repository: https://github.com/github/awesome-copilot

csharp-nunit FAQ

What does the csharp-nunit skill do?

Get best practices for NUnit unit testing, including data-driven tests Use a separate test project with naming convention [ProjectName].Tests Reference Microsoft.NET.Test.Sdk, NUnit, and NUnit3TestAdapter packages

How do I install csharp-nunit?

Run: npx -y skills add https://github.com/github/awesome-copilot --skill csharp-nunit --agent claude-code — the source lives at github.com/github/awesome-copilot.

Maintain csharp-nunit?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

csharp-nunit on getagentictools
[![csharp-nunit on getagentictools](https://getagentictools.com/badge/skills/github-awesome-copilot-csharp-nunit.svg)](https://getagentictools.com/skills/github-awesome-copilot-csharp-nunit?ref=badge)
npx agentictools info skills/github-awesome-copilot-csharp-nunit

The second line is the CLI lookup for this page — handy in READMEs and docs.