Skip to content
wshaddix avatar

Dotnet Testing Strategy

Decision framework for choosing test types, organizing test projects, and picking test doubles in .NET.

CCM score
51 of 100
skills.sh installs
632
GitHub stars
94
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a unit, integration, and E2E decision tree with concrete criteria for speed, scope, and infrastructure per test type
  • Includes project naming conventions (*.UnitTests, *.IntegrationTests, *.FunctionalTests) mirroring the src/ layout under tests/
  • Guides test naming with the Method_Scenario_ExpectedBehavior pattern and an Arrange-Act-Assert structure for each test
  • Compares stubs, mocks, fakes, and spies, with guidance on when to use each; scaffolding is handled by dotnet-add-testing

Install

$ npx -y skills add wshaddix/dotnet-skills --skill dotnet-testing-strategy -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

dotnet-testing-strategy

Decision framework for choosing the right test type, organizing test projects, and selecting test doubles in .NET applications. Covers unit vs integration vs E2E trade-offs with concrete criteria, naming conventions, and when to use mocks vs fakes vs stubs.

Out of scope: Test project scaffolding (directory layout, xUnit project creation, coverlet setup, editorconfig overrides) is owned by [skill:dotnet-add-testing]. Code coverage tooling and mutation testing are covered by [skill:dotnet-test-quality]. CI test reporting and pipeline integration -- see [skill:dotnet-gha-build-test] and [skill:dotnet-ado-build-test].

Prerequisites: Run [skill:dotnet-project-analysis] to understand the solution structure before designing a test strategy.

Cross-references: [skill:dotnet-xunit] for xUnit v3 testing framework features, [skill:dotnet-integration-testing] for WebApplicationFactory and Testcontainers patterns, [skill:dotnet-snapshot-testing] for Verify-based approval testing, [skill:dotnet-test-quality] for coverage and mutation testing, [skill:dotnet-add-testing] for test project scaffolding.


Test Type Decision Tree

Details

Repository
github.com/wshaddix/dotnet-skills
Categories
Testing & QA, .NET & C#
First seen
Jun 3, 2026

More from wshaddix/dotnet-skills

All 13

Similar to Dotnet Testing Strategy

More Testing & QA