Dotnet10 Testing

Opinionated unit testing conventions for .NET 10 solutions built on Clean Architecture and Dapper: xUnit as the runner with `[Theory]` reserved for variants that differ only in input values, Moq for collaborators, Bogus fakers as dedicated builder classes in a shared test library, AwesomeAssertions for assertions, result objects instead of thrown exceptions, and repository tests that run against the real engine in a disposable container rather than a mocked connection. Use this skill whenever writing, reviewing, or restructuring tests for a .NET project: service tests, controller tests, repository tests, test data builders, mocking strategy, test naming, or test project layout. Also use when setting up a test project from scratch or deciding what deserves a test at all.

GuerthCastro a607d1e 29.1 KB Updated

File contents

GuerthCastro/claude-skills-dotnet/tree/main/dotnet10-testing commit a607d1e0be

Frequently asked questions

npx skillmds@latest add guerthcastro/dotnet10-testing