csharp-xunit

Originally fromgithub/awesome-copilot
Installation
SKILL.md

XUnit Best Practices

Your goal is to help me write effective unit tests with XUnit, covering both standard and data-driven testing approaches.

Project Setup

  • 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

Test Structure

Installs
27
GitHub Stars
6.1K
First Seen
May 3, 2026
csharp-xunit — midudev/autoskills