dotnet-testing-strategy

Select .NET testing strategies using a decision framework for unit, integration, and E2E tests.

10|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill dotnet-testing-strategy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-testing-strategy
Source: https://github.com/AGIBuild/Agibuild.Fulora/tree/main/.cursor/skills/dotnet-testing-strategy
Command: npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill dotnet-testing-strategy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a clear decision framework for selecting the appropriate testing strategy (unit, integration, E2E) for .NET code, ensuring efficient and effective test coverage.

Core Features & Use Cases

  • Test Type Decision Tree: Guides users to choose between unit, integration, and E2E tests based on infrastructure dependencies and criticality.
  • Test Organization: Offers conventions for project naming, test class structure, and test naming.
  • Test Doubles Guidance: Explains when to use stubs, mocks, fakes, and spies with clear examples.
  • Use Case: A developer is unsure whether to write a unit test with a mock or an integration test with a real database for a new repository method. This Skill's decision tree will guide them to the correct approach.

Quick Start

Use the dotnet-testing-strategy skill to understand when to use integration tests versus unit tests for .NET code.

Frequently Asked Questions about dotnet-testing-strategy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I use unit testing versus integration testing in .NET?

Unit testing in .NET is ideal for isolated logic without infrastructure dependencies, while integration testing verifies components with real dependencies like databases. A decision tree based on infrastructure needs and criticality helps determine the correct test type.

How do I choose between mocks, stubs, and fakes for .NET test doubles?

Choosing between mocks, stubs, and fakes for .NET test doubles depends on whether you need to verify interactions or simply provide canned data. Use mocks for behavior verification, stubs for state setup, and fakes for lightweight in-memory implementations.

What are common .NET testing anti-patterns I should avoid?

Common .NET testing anti-patterns include over-mocking internal implementations, writing brittle end-to-end tests for unit-level logic, and inadequate test isolation. A robust test suite avoids these by applying proper test organization patterns and selecting the correct test type.

What is the best way to structure and name .NET test classes?

The best way to structure .NET test classes is using clear naming conventions that reflect the system under test and the scenario being tested. Proper test organization ensures maintainability and separates unit, integration, and end-to-end tests effectively.

Does my .NET repository method need an E2E test or a unit test?

A .NET repository method typically requires an integration test with a real database rather than a unit test to accurately verify data persistence. However, if testing isolated business logic around the repository, unit tests with mocks may be sufficient.