dotnet-test

dotnet-test is a skill for Claude Code from landim32/awesome-ai-skills. It costs 60 tokens per session (1,809 once invoked), scanned A, original, MIT.

A guide for managing unit tests with xUnit in .NET. Unit tests check small parts of an application separately to confirm that they behave as expected.

In plain words
What is it for?
Use it to create a test project, add or update tests, and organize tests for domain, application, infrastructure, or API code.
Why use it?
It provides a consistent test-project structure and helps keep tests organized by application layer while matching existing project patterns.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the awesome-ai-skills plugin — 36 skills, 11 commands, 8 agents shipped together

Good fit Use it to create a test project, add or update tests, and organize tests for domain, application, infrastructure, or API code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/landim32/awesome-ai-skills/dotnet-test
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.

Any agent
npx skills add landim32/awesome-ai-skills --skill dotnet-test
Clone the repo
git clone --depth 1 https://github.com/landim32/awesome-ai-skills

Made for: Claude Code.

Or install awesome-ai-skills, the plugin that ships this one along with the rest of its 36 skills, 11 commands, 8 agents.

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-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/dotnet-test/github.svg)](https://agentmods.dev/skills/landim32/awesome-ai-skills/dotnet-test)
Your own site
<a href="https://agentmods.dev/skills/landim32/awesome-ai-skills/dotnet-test"><img src="https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/dotnet-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dotnet-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/landim32/awesome-ai-skills/dotnet-test"><img src="https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/dotnet-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,809 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00060 $0.01809
Opus 5 $0.00030 $0.00905
Sonnet 5 $0.00012 $0.00362
Haiku 4.5 $0.00006 $0.00181

Measured 11d ago against content hash 55ad20b29356, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

dotnet-test 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 11d 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-test/SKILL.md · 221 lines

How it starts

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

.NET Unit Test Manager (xUnit)

You are an expert assistant that helps developers create and manage unit tests using xUnit in .NET projects. You follow a strict convention for project structure, naming, and organization.

Input

The user will describe what to test: $ARGUMENTS

Before generating tests:

  1. Read the solution structure — Identify all projects/layers and the .sln file
  2. Find the test project — Look for a project ending in .Tests (e.g., MyApp.Tests)
  3. Read the class to be tested — Understand its dependencies, methods, and behavior
  4. Read the DI/Startup — Understand how services are wired up
  5. Identify existing test patterns — If tests already exist, match their style exactly

Test Project Convention

Single Test Project

Create only one test project for the entire solution, named {SolutionName}.Tests.

MySolution/
├── MySolution.sln
├── MySolution.API/
├── MySolution.Application/
├── MySolution.Domain/
├── MySolution.Infra/
├── MySolution.Infra.Interfaces/
├── MySolution.DTO/
└── MySolution.Tests/            ← Single test project
    ├── MySolution.Tests.csproj
    ├── Domain/
    │   ├── Services/
    │   │   ├── ProductServiceTest.cs
    │   │   └── OrderServiceTest.cs
    │   └── Mappers/
    │       └── ProductMapperTest.cs
    ├── Application/
    │   └── StartupTest.cs
    ├── Infra/
    │   ├── Repository/
    │   │   └── ProductRepositoryTest.cs
    │   └── Mappers/
    │       └── ProductDbMapperTest.cs
    └── API/
        └── Controllers/
            └── ProductControllerTest.cs

Folder Mirroring Rules

  • The test project mirrors the layer names as top-level folders: Domain/, Application/, Infra/, API/, etc.
  • Inside each layer folder, mirror the subfolder structure of the source project (e.g., Services/, Repository/, Mappers/, Controllers/)
  • Each test file corresponds to one source class
  • Test file name = {ClassName}Test.cs (e.g., ProductServiceProductServiceTest.cs)

Read the full file on GitHub · 221 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. 11d ago First seen · 221 lines · 60 tokens per session scan A 55ad20b29356

Subscribe to this mod's changes

dotnet-test is a skill published in the GitHub repository landim32/awesome-ai-skills (1 stars, last pushed 2mo ago), licensed MIT. It adds 60 tokens to every session and 1,809 once invoked, about $0.0003 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-31.