tdd-workflow

Guide .NET developers through a RED-GREEN-REFACTOR Test-Driven Development cycle.

4|1|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/DoubleslashSE/claude-marketplace --skill tdd-workflow-doubleslashse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/DoubleslashSE/claude-marketplace/tree/main/Plugins/dotnet-tdd/skills/tdd-workflow
Command: npx skills add https://github.com/DoubleslashSE/claude-marketplace --skill tdd-workflow-doubleslashse

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured approach to Test-Driven Development for .NET projects, helping teams reduce defects by enforcing a clear RED-GREEN-REFACTOR cycle.

Core Features & Use Cases

  • Structured TDD lifecycle: Guides teams through writing a failing test (RED), implementing the minimal code to pass (GREEN), and thoughtful refactoring (REFACTOR) to improve design.
  • Standardized practices: Promotes the AAA testing pattern, consistent test naming, and disciplined design decisions for feature work, bug fixes, and new code.
  • Use Case: When starting a new .NET feature, a developer follows the cycle to ensure tests drive design and maintainability from the outset.

Quick Start

Create a failing unit test for the new feature, run tests to observe failure, implement the simplest code to pass, then refactor for clarity and SOLID design.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I implement a Test-Driven Development workflow in C# and .NET?

To implement TDD in .NET, follow a structured RED-GREEN-REFACTOR cycle: write a failing unit test, implement the minimal code required to pass it, and then refactor for clarity and SOLID design.

What is the AAA test pattern and how does it apply to .NET refactoring?

The AAA test pattern formalizes tests into Arrange, Act, and Assert stages. Applying it in .NET ensures disciplined test design and maintains green tests while you refactor code for better maintainability.

How do I fix a failing unit test using the RED-GREEN-REFACTOR cycle?

To fix a failing unit test using the RED-GREEN-REFACTOR cycle, write code that specifically targets the test failure to achieve a green state, then refactor the implementation while keeping tests green.

Can I use this TDD workflow for bug fixes and new features in dotnet projects?

Yes, you can use this TDD workflow for bug fixes and new feature implementation in dotnet projects. It enforces disciplined test design and progression rules to reduce defects across all C# development tasks.

What is the best way to structure unit test naming conventions for .NET features?

The best way to structure unit test naming conventions is to follow standardized practices that enforce consistent test naming and disciplined design decisions throughout the TDD lifecycle in .NET.