dotnet-tdd

Automate Test-Driven Development cycles in C# .NET projects with xUnit, Moq, and FluentAssertions.

10|7|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/cuongtl1992/vibe-skills --skill dotnet-tdd-cuongtl1992
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-tdd
Source: https://github.com/cuongtl1992/vibe-skills/tree/main/skills/backend/dotnet-tdd
Command: npx skills add https://github.com/cuongtl1992/vibe-skills --skill dotnet-tdd-cuongtl1992

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the adoption of Test-Driven Development in .NET projects by guiding teams through Plan → Test (RED) → Implement (GREEN) → Review cycles, improving software quality and maintainability.

Core Features & Use Cases

  • Guided TDD workflow for C#/.NET with xUnit, Moq, and FluentAssertions.
  • Promotes clean architecture and collaboration through explicit test plans and iterative refinements.
  • Provides concrete examples of planning, testing, implementing, and reviewing to accelerate learning and consistency.

Quick Start

Outline a feature and start a RED-GREEN-REFACTOR cycle to drive development with tests first in your .NET project.

Frequently Asked Questions about dotnet-tdd

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

FAQPage Schema
How do I start Test-Driven Development in a .NET project using xUnit and Moq?

Start Test-Driven Development in your .NET project by outlining a feature and initiating a RED-GREEN-REFACTOR cycle. This structured workflow drives development with tests first using xUnit, Moq, and FluentAssertions, ensuring minimal production code until tests pass.

What is the Plan-Test-Implement-Review cycle for C# unit testing?

The Plan-Test-Implement-Review cycle for C# unit testing is a structured pipeline that uses use-case driven plans to guide development. It enforces test creation before implementation, followed by continuous refactor steps to improve software quality and maintainability.

Can I use this TDD workflow to refactor existing C# features?

Yes, you can use this TDD workflow to refactor existing C# features. It guides teams through iterative refinements and continuous refactor steps, applying unit-testing workflows to new features and refactors while promoting clean architecture.

Does this TDD approach support clean architecture in C# projects?

Yes, this TDD approach supports clean architecture in C# projects. It promotes clean architecture and collaboration through explicit test plans and iterative refinements, aligning development cycles with structured use-case driven plans.

Why write minimal production code until unit tests pass in .NET?

Writing minimal production code until unit tests pass in .NET enforces disciplined Test-Driven Development cycles. This approach ensures that all implementation is driven by failing tests first, improving software quality and maintainability through continuous refactoring.

What's the best way to automate TDD cycles with FluentAssertions in C#?

The best way to automate TDD cycles with FluentAssertions in C# is to follow a guided workflow that moves from planning to testing, implementation, and review. This provides concrete examples and accelerates consistency across development teams.