dotnet-testing

dotnet-testing is a skill for Claude Code, Codex from kevintsengtw/dotnet-testing-agent-skills. It costs 264 tokens per session (2,966 once invoked), scanned A, original, MIT.

A guide that directs general .NET testing questions to more specific testing topics and tools. .NET is Microsoft's platform for building applications with languages such as C#.

In plain words
What is it for?
Use it to get started with .NET tests or choose guidance for assertions, mocks, generated test data, date and file-system testing, and object comparisons.
Why use it?
It helps identify the right testing approach instead of searching through unrelated testing techniques.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing
Any agent
npx skills add kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing
Clone the repo
git clone --depth 1 https://github.com/kevintsengtw/dotnet-testing-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing.svg)](https://agentmods.dev/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing)
Your own site
<a href="https://agentmods.dev/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing"><img src="https://agentmods.dev/badge/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 264 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,966 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00264 $0.02966
Opus 5 $0.00132 $0.01483
Sonnet 5 $0.00053 $0.00593
Haiku 4.5 $0.00026 $0.00297

Measured 4d ago against content hash 325d913ad248, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dotnet-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dotnet-testing/SKILL.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

.NET 測試基礎技能總覽

本檔案是「導航中心」,幫助找到正確的子技能。子技能包含詳細的程式碼範例、最佳實踐和常見陷阱,載入正確的子技能能確保使用者獲得最完整的指引。

根據使用者需求匹配對應的子技能,使用 Skill tool 載入,讓子技能提供專業的測試指引。


快速技能對照表

使用者提到的關鍵字 → 應載入的子技能

最常用技能

使用者說... 載入指令 用途說明
Validator、驗證器、CreateUserValidator /skill dotnet-testing-fluentvalidation-testing FluentValidation 測試
Mock、模擬、IRepository、IService /skill dotnet-testing-nsubstitute-mocking 模擬外部依賴
AutoFixture、測試資料生成 /skill dotnet-testing-autofixture-basics 自動產生測試資料
斷言、Should()、BeEquivalentTo /skill dotnet-testing-awesome-assertions-guide 流暢斷言(必學)
DateTime、時間測試、TimeProvider /skill dotnet-testing-datetime-testing-timeprovider 時間相關測試
File、檔案系統、IFileSystem /skill dotnet-testing-filesystem-testing-abstractions 檔案系統測試
Bogus、假資料、Faker /skill dotnet-testing-bogus-fake-data 擬真資料生成
Builder Pattern、WithXxx /skill dotnet-testing-test-data-builder-pattern Test Data Builder
深層比對、DTO 比對、Excluding /skill dotnet-testing-complex-object-comparison 複雜物件比對

基礎入門技能

使用者說... 載入指令 用途說明
從零開始、測試基礎、FIRST 原則 /skill dotnet-testing-unit-test-fundamentals 單元測試基礎
測試命名、如何命名測試 /skill dotnet-testing-test-naming-conventions 命名規範
建立測試專案、xUnit 設定 /skill dotnet-testing-xunit-project-setup 專案建置

進階技能組合

使用者說... 載入指令 用途說明
AutoFixture 自訂規則 /skill dotnet-testing-autofixture-customization ISpecimenBuilder 客製化
AutoFixture + Bogus /skill dotnet-testing-autofixture-bogus-integration 自動化+擬真資料
AutoFixture + NSubstitute /skill dotnet-testing-autofixture-nsubstitute-integration 自動建立 Mock
AutoData、Theory 測試 /skill dotnet-testing-autodata-xunit-integration 參數化測試
測試輸出、ITestOutputHelper /skill dotnet-testing-test-output-logging 測試日誌
覆蓋率、Coverlet /skill dotnet-testing-code-coverage-analysis 程式碼覆蓋率

Read the full file on GitHub · 237 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 237 lines · 264 tokens per session scan A 325d913ad248

Subscribe to this mod's changes

dotnet-testing is a skill published in the GitHub repository kevintsengtw/dotnet-testing-agent-skills (28 stars, last pushed 19d ago), licensed MIT. It adds 264 tokens to every session and 2,966 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories