dotnet-testing-advanced-tunit-fundamentals
✓TUnit 新世代測試框架入門完整指南。 涵蓋 Source Generator 驅動測試發現、AOT 編譯支援、流暢式非同步斷言。 包含專案建立、[Test] 屬性、生命週期管理、並行控制與 xUnit 語法對照。
Installation
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 語法對照。 Source: kevintsengtw/dotnet-testing-agent-skills.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-advanced-tunit-fundamentals- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is dotnet-testing-advanced-tunit-fundamentals?
TUnit 新世代測試框架入門完整指南。 涵蓋 Source Generator 驅動測試發現、AOT 編譯支援、流暢式非同步斷言。 包含專案建立、[Test] 屬性、生命週期管理、並行控制與 xUnit 語法對照。 Source: kevintsengtw/dotnet-testing-agent-skills.
How do I install dotnet-testing-advanced-tunit-fundamentals?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-advanced-tunit-fundamentals Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/kevintsengtw/dotnet-testing-agent-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01