Csharp tunit

From mouadja02/skills · View interactive version

Csharp tunit is an AI agent skill from the GitHub repository mouadja02/skills. Applies TUnit best practices to C# unit tests: structure, assertions, lifecycle hooks, and data-driven tests. Use when writing or reviewing tests with the TUnit framework.

How to use this skill

Skill file

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

TUnit Best Practices

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

Project Setup

Test Structure

Standard Tests

Data-Driven Tests

Assertions

Advanced Features

Test Organization

Performance and Parallel Execution

Migration from xUnit

Why TUnit over xUnit?

TUnit offers a modern, fast, and flexible testing experience with advanced features not present in xUnit, such as asynchronous assertions, more refined lifecycle hooks, and improved data-driven testing capabilities. TUnit's fluent assertions provide clearer and more expressive test validation, making it especially suitable for complex .NET projects.

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.