csharp-xunit
Comprehensive XUnit testing guide covering standard facts, data-driven theories, and best practices.
What it does
- Use a separate test project with naming convention [ProjectName].Tests
- Reference Microsoft.NET.Test.Sdk, xunit, and xunit.runner.visualstudio 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
- No test class attributes required (unlike MSTest/NUnit)
- Use fact-based tests with [Fact] attribute for simple tests
- Follow the Arrange-Act-Assert (AAA) pattern
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Comprehensive XUnit testing guide covering standard facts, data-driven theories, and best practices.
Source
Repository: https://github.com/github/awesome-copilot
csharp-xunit FAQ
What does the csharp-xunit skill do?
Get best practices for XUnit unit testing, including data-driven tests Use a separate test project with naming convention [ProjectName].Tests Reference Microsoft.NET.Test.Sdk, xunit, and xunit.runner.visualstudio packages
How do I install csharp-xunit?
Run: npx -y skills add https://github.com/github/awesome-copilot --skill csharp-xunit --agent claude-code — the source lives at github.com/github/awesome-copilot.
Maintain csharp-xunit?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/github-awesome-copilot-csharp-xunit?ref=badge) npx agentictools info skills/github-awesome-copilot-csharp-xunit The second line is the CLI lookup for this page — handy in READMEs and docs.