csharp-tunit

软件研发 测试与质量 1 文件 EN 原文

'Get best practices for TUnit unit testing, incl

'Get best practices for TUnit unit testing, including data-driven tests'

说明语言:英文

来源githubawesome-copilot ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/github/awesome-copilot --skill csharp-tunit

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: csharp-tunit description: 'Get best practices for TUnit unit testing, including data-driven tests' ---

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.

同类技能
apple-appstore-reviewerarize-ai-provider-integrationbacktesting-frameworksbats-testing-patternsbreakdown-testcode-review-excellencecsharp-mstestcsharp-nunit
本页内容来自开源项目 github, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。