dotnet-testing-advanced-tunit-fundamentals
✓TUnit 新世代測試框架入門完整指南。 涵蓋 Source Generator 驅動測試發現、AOT 編譯支援、流暢式非同步斷言。 包含專案建立、[Test] 屬性、生命週期管理、並行控制與 xUnit 語法對照。
SKILL.md
| [Before(Test)] | 實例方法 | 每個測試執行前 | | [Before(Class)] | 靜態方法 | 類別中第一個測試執行前 | | [Before(Assembly)] | 靜態方法 | 組件中第一個測試執行前 | | [After(Test)] | 實例方法 | 每個測試執行後 | | [After(Class)] | 靜態方法 | 類別中最後一個測試執行後 | | [After(Assembly)] | 靜態方法 | 組件中最後一個測試執行後 |
| 基本測試 | [Fact] | [Test] | | 參數化測試 | [Theory] + [InlineData] | [Test] + [Arguments] | | 基本斷言 | Assert.Equal(expected, actual) | await Assert.That(actual).IsEqualTo(expected) | | 布林斷言 | Assert.True(condition) | await Assert.That(condition).IsTrue() | | 例外測試 | Assert.Throws (() => action()) | await Assert.That(() => action()).Throws () |
| Null 檢查 | Assert.Null(value) | await Assert.That(value).IsNull() | | 字串檢查 | Assert.Contains("text", fullString) | await Assert.That(fullString).Contains("text") |
TUnit 新世代測試框架入門完整指南。 涵蓋 Source Generator 驅動測試發現、AOT 編譯支援、流暢式非同步斷言。 包含專案建立、[Test] 屬性、生命週期管理、並行控制與 xUnit 語法對照。 来源:kevintsengtw/dotnet-testing-agent-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-advanced-tunit-fundamentals- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 dotnet-testing-advanced-tunit-fundamentals?
TUnit 新世代測試框架入門完整指南。 涵蓋 Source Generator 驅動測試發現、AOT 編譯支援、流暢式非同步斷言。 包含專案建立、[Test] 屬性、生命週期管理、並行控制與 xUnit 語法對照。 来源:kevintsengtw/dotnet-testing-agent-skills。
如何安装 dotnet-testing-advanced-tunit-fundamentals?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-advanced-tunit-fundamentals 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/kevintsengtw/dotnet-testing-agent-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01