dotnet-testing

dotnet-testing is a skill for Claude Code, Codex from novotnyllc/dotnet-artisan. It costs 120 tokens per session (846 once invoked), scanned A, original, MIT.

A guide to testing .NET applications with tools such as xUnit, integration tests, browser tests, and snapshot tests. It explains how to choose between tests that check small code units, connected components, or the whole application.

In plain words
What is it for?
It is for planning test coverage, writing xUnit tests, testing databases and services together, checking browser behaviour, and comparing saved output snapshots.
Why use it?
It helps developers choose a suitable test type and follow consistent patterns instead of guessing how to test each part of a .NET project.

Skill for Claude CodeCodex

Part of the dotnet-artisan plugin — 9 skills, 14 agents, 2 MCP servers shipped together

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/novotnyllc/dotnet-artisan/dotnet-testing
Any agent
npx skills add novotnyllc/dotnet-artisan --skill dotnet-testing
Clone the repo
git clone --depth 1 https://github.com/novotnyllc/dotnet-artisan

Made for: Claude Code, Codex.

Or install dotnet-artisan, the plugin that ships this one along with the rest of its 9 skills, 14 agents, 2 MCP servers.

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/novotnyllc/dotnet-artisan/dotnet-testing.svg)](https://agentmods.dev/skills/novotnyllc/dotnet-artisan/dotnet-testing)
Your own site
<a href="https://agentmods.dev/skills/novotnyllc/dotnet-artisan/dotnet-testing"><img src="https://agentmods.dev/badge/skills/novotnyllc/dotnet-artisan/dotnet-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 846 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.00120 $0.00846
Opus 5 $0.00060 $0.00423
Sonnet 5 $0.00024 $0.00169
Haiku 4.5 $0.00012 $0.00085

Measured 5d ago against content hash 58835b947611, 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 5d 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.

plugins/dotnet-artisan/skills/dotnet-testing/SKILL.md · 53 lines

How it starts

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

dotnet-testing

Overview

Testing strategy, frameworks, and quality tooling for .NET applications. This consolidated skill spans 13 topic areas. Load the appropriate companion file from references/ based on the routing table below.

Baseline dependency: references/testing-strategy.md defines the unit vs integration vs E2E decision tree and test doubles selection that inform all testing decisions. Load it by default whenever a testing approach needs to be chosen.

Most-shared companion: references/xunit.md covers xUnit v3 framework features used by integration, snapshot, and UI testing companions.

Routing Table

Topic Keywords Description Companion File
Strategy unit vs integration vs E2E, test doubles Unit vs integration vs E2E decision tree, test doubles selection references/testing-strategy.md
xUnit Facts, Theories, fixtures, parallelism xUnit v3 Facts, Theories, fixtures, parallelism, IAsyncLifetime references/xunit.md
Integration WebApplicationFactory, Testcontainers, Aspire WebApplicationFactory, Testcontainers, Aspire, database fixtures references/integration-testing.md
Snapshot Verify, scrubbing, API responses Verify library, scrubbing, custom converters, HTTP response snapshots references/snapshot-testing.md
Playwright E2E browser, CI caching, trace viewer Playwright E2E browser automation, CI caching, trace viewer, codegen references/playwright.md
BenchmarkDotNet microbenchmarks, memory diagnosers BenchmarkDotNet microbenchmarks, memory diagnosers, baselines references/benchmarkdotnet.md
CI benchmarking threshold alerts, baseline tracking CI benchmark regression detection, threshold alerts, baseline tracking references/ci-benchmarking.md
Test quality Coverlet, Stryker.NET, flaky tests Coverlet code coverage, Stryker.NET mutation testing, flaky tests references/test-quality.md
Add testing scaffold xUnit project, coverlet, layout Scaffold xUnit project, coverlet setup, directory layout references/add-testing.md
Slopwatch LLM reward hacking detection Slopwatch CLI for LLM reward hacking detection references/slopwatch.md
AOT WASM Blazor/Uno WASM AOT, size, lazy loading Blazor/Uno WASM AOT compilation, size vs speed, lazy loading, Brotli references/aot-wasm.md
UI testing core page objects, selectors, async waits Page object model, test selectors, async waits, accessibility testing references/ui-testing-core.md
Aspire testing DistributedApplicationTestingBuilder, Aspire test host Aspire test host, service HTTP clients, resource health references/aspire-testing.md

Read the full file on GitHub · 53 lines

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. 5d ago First seen · 53 lines · 120 tokens per session scan A 58835b947611

Subscribe to this mod's changes

dotnet-testing is a skill published in the GitHub repository novotnyllc/dotnet-artisan (228 stars, last pushed 17d ago), licensed MIT. It adds 120 tokens to every session and 846 once invoked, about $0.0006 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

dotnet-reverse

.NET / C# 二进制逆向。当目标是 .NET assembly(PE 头含 CLR、.exe/.dll 托管程序)、C# 编译产物(含 NativeAOT)、红队 Sharp 工具(Rubeus / SharpHound / SharpHound 等)、.NET 混淆程序(ConfuserEx / SmartAssembly / Babel / Eazfuscator)、.NET loader / info-stealer / 套壳 malware 时使用。优先用 dnSpyEx + de4dot,需要 AI 直接操作时联动 dnSpy MCP。不用于纯 native 二进制(走 reverse-engineering /…

zhaoxuya520/reverse-skill · 144 tokens

build-and-test

How to build and test .NET projects in the Agent Framework repository. Use this when verifying or testing changes.

microsoft/agent-framework · 26 tokens

agui-dotnet-streaming-chat

Get started with the AG-UI .NET SDK: bootstrap and run your first streaming-chat app (client + server) with the AG-UI .NET NuGet packages (AGUI.Client, AGUI.Server, AGUI.Formatting, AGUI.Abstractions). USE FOR: which packages to install and how to wire them; constructing an AGUIChatClient against an endpoint and…

ag-ui-protocol/ag-ui · 223 tokens

agui-dotnet-wire-types

Add or modify a wire/protocol type in the AG-UI .NET SDK AGUI.Abstractions package — a new event, message, or content-part type, the AOT source-gen serializer context, or a polymorphic JSON converter, keeping it AOT-safe, JSON-wire-compatible with the TypeScript reference, and PublicAPI-clean. USE FOR: adding an AG-UI…

ag-ui-protocol/ag-ui · 174 tokens

azure-mgmt-apicenter-dotnet

Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API…

microsoft/skills · 97 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

dotnet/skills · 149 tokens