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
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 thesrc/layout undertests/ - Guides test naming with the
Method_Scenario_ExpectedBehaviorpattern 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 -yInstalls 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 13Similar to Dotnet Testing Strategy
More Testing & QAtesting-patternsvudovn/ag-kit218 installsReference guide of testing principles covering the test pyramid, AAA structure, and mocking strategies for reliable suites.
unit-testing-frameworkaj-geddes/useful-ai-prompts637 installsStructured guidance for writing unit tests with Jest, pytest, JUnit, or RSpec, following the AAA pattern.
fsharp-testingaffaan-m/ecc8.8K installsF# testing patterns covering xUnit, FsUnit, Unquote, and FsCheck property-based tests for .NET projects.
python-testing-patternswshobson/agents42.2K installsComprehensive pytest guide covering fixtures, mocking, parameterization, and test-driven development workflows for Python.
designing-testscloudai-x/claude-workflow-v2159 installsStructured testing strategy skill covering unit, integration, and E2E layers with framework picks per language.