Sample code for the "You Suck at TDD" Series
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Properties
.gitattributes
.gitignore
App.config
Employee.cs
EmployeeFilterType.cs
FakeSql.cs
Program.cs
README.md
Yucky.cs
designIssueExample.csproj
designIssueExample.sln

README.md

DesignForTestability

This is an example project with code that exhibits common issues that make it hard to write tests.

The exercise is to take the current implementation of the Yucky class, refactor it into testable code, and add those tests.

My recommended approach is to look at the code, write down the issues that you have found, and take a try at refactoring. Then, go and read the "You suck at TDD series", come back, and see if you have any new thoughts.

You Suck at TDD