·dotnet-testing-unit-test-fundamentals
</>

dotnet-testing-unit-test-fundamentals

kevintsengtw/dotnet-testing-agent-skills

.NET 單元測試基礎與 FIRST 原則的專門技能。 當需要建立單元測試、了解測試基礎、學習 3A Pattern、掌握測試最佳實踐時使用。 涵蓋 FIRST 原則、AAA Pattern、Fact/Theory、測試金字塔等。

27Installs·1Trend·@kevintsengtw

Installation

$npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-unit-test-fundamentals

SKILL.md

| Arrange | 準備測試所需的物件、資料、Mock | 使用 const 宣告常數值,提高可讀性 | | Act | 執行被測試的方法 | 通常只有一行,呼叫被測方法 | | Assert | 驗證結果 | 每個測試只驗證一個行為 |

| Add輸入1和2應回傳3 | 測試正常輸入 | | Add輸入負數和正數應回傳正確結果 | 測試邊界條件 | | Divide輸入10和0應拋出DivideByZeroException | 測試例外情況 | | IsValidEmail輸入null值應回傳False | 測試無效輸入 | | GetDomain輸入有效Email應回傳網域名稱 | 測試回傳值 |

| Assert.Equal(expected, actual) | 驗證相等 | | Assert.NotEqual(expected, actual) | 驗證不相等 | | Assert.True(condition) | 驗證條件為真 | | Assert.False(condition) | 驗證條件為假 | | Assert.Null(object) | 驗證為 null | | Assert.NotNull(object) | 驗證不為 null | | Assert.Throws (action) | 驗證拋出特定例外 | | Assert.Empty(collection) | 驗證集合為空 | | Assert.Contains(item, collection) | 驗證集合包含項目 |

.NET 單元測試基礎與 FIRST 原則的專門技能。 當需要建立單元測試、了解測試基礎、學習 3A Pattern、掌握測試最佳實踐時使用。 涵蓋 FIRST 原則、AAA Pattern、Fact/Theory、測試金字塔等。 Source: kevintsengtw/dotnet-testing-agent-skills.

View raw

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-unit-test-fundamentals
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is dotnet-testing-unit-test-fundamentals?

.NET 單元測試基礎與 FIRST 原則的專門技能。 當需要建立單元測試、了解測試基礎、學習 3A Pattern、掌握測試最佳實踐時使用。 涵蓋 FIRST 原則、AAA Pattern、Fact/Theory、測試金字塔等。 Source: kevintsengtw/dotnet-testing-agent-skills.

How do I install dotnet-testing-unit-test-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-unit-test-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