Csharp xunit

From mouadja02/skills · View interactive version

Csharp xunit is an AI agent skill from the GitHub repository mouadja02/skills. Applies xUnit best practices to C# unit tests: facts and theories, fixtures, assertions, and data-driven tests with InlineData and MemberData. Use when writing or reviewing xUnit tests.

How to use this skill

Skill file

Attribution: Sourced from github/awesome-copilot by GitHub Community, licensed MIT. Modified for this collection.

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

Test Structure

Standard Tests

Data-Driven Tests

Assertions

Mocking and Isolation

Test Organization

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.