tdd
Installation
SKILL.md
/tdd -- Red-Green-Refactor for .NET
What
Guides a strict test-driven development cycle for .NET features. Instead of writing implementation first and bolting on tests after, this command flips the order: write a failing test that defines the desired behavior, implement the minimum code to make it pass, then refactor with confidence.
Every cycle uses the .NET testing stack:
- xUnit v3 -- Test framework with
[Fact]and[Theory] - WebApplicationFactory -- Integration tests against the real HTTP pipeline
- Testcontainers -- Real databases (PostgreSQL, SQL Server) in tests
- Verify -- Snapshot testing for complex response structures
- FakeTimeProvider -- Deterministic time in tests