TDD Starter Kit - Sample Projects and Links

Posted on July 23rd, 2009 in TDD, unit testing by Jon Kruger

Test driven development is a proven technique that will help you write well tested and well designed code, but it takes some practice. Here are some sample projects that you can work through to get some practice, along with my completed solutions so that you can see how I did it (not that my way is the only right way, of course). (Note: you can also pull the code doing using SVN from here: http://tdd-starter-kit.googlecode.com/svn/trunk/).

If you’re in the Columbus, OH area and you want me to come give my TDD talk (which these samples came from), send me an email and let me know and we’ll work something out.

Here are some links if you want to do some more reading:

Test Driven Development

TDD Design Starter Kit: It’s All about Assigning Responsibilities
TDD Design Starter Kit - State vs. Interaction Testing
TDD Design Starter Kit - Dependency Inversion Principle
TDD Design Starter Kit – Responsibilities, Cohesion, and Coupling
TDD Design Starter Kit - Static Methods and Singletons May Be Harmful
Succeed with TDD by designing with TDD
Unit Testing Business Logic without Tripping Over the Database
Haacked on TDD and Jeremy’s First Rule of TDD
Jeremy’s Second Law of TDD: Push, Don’t Pull
Achieve Better Results by following Jeremy’s Third Law of TDD: Test Small Before Testing Big
How much design before unit testing, and how much design knowledge before TDD?
So How do You Introduce TDD into an Organization or Team?
Pair Programming Bot
Why write unit tests?
Empirical Studies Show Test Driven Development Improves Quality
The Relative Cost of Fixing Defects

Rhino Mocks

Rhino Mocks 3.5 Wiki

StructureMap / dependency injection

Introduction to StructureMap
Jeremy Miller’s blog (author of StructureMap)
DimeCasts on StructureMap
Inversion of Control with the Plugin Pattern
What’s so great about Inversion of Control?
The Dependency Injection Pattern – What is it and why do I care?

Behavior Driven Development

Behavior Driven Development article from CODE Magazine - this one is a must read if you want to understand BDD.
BDD Wiki
Introducing BDD

Software Design

Writing Testable Code Is About Managing Complexity
Writing Testable Code

NBehave

NBehave.org
NBehave on CodePlex
NBehave source code

ReSharper

ReSharper website
ReSharper TDD Productivity Plugin

NUnit

NUnit web site


Kick It on DotNetKicks.com

3 Responses to 'TDD Starter Kit - Sample Projects and Links'

Subscribe to comments with RSS or TrackBack to 'TDD Starter Kit - Sample Projects and Links'.


  1. on July 26th, 2009 at 7:08 pm

    [...] TDD Starter Kit - Sample Projects and Links [...]


  2. on September 10th, 2009 at 9:23 pm

    [...] can find the TDD starter kit here.  I highly recommend downloading and walking through the projects.  Within it, you’ll also [...]


  3. on January 27th, 2010 at 9:46 pm

    [...] I said, I interview people. If I interview you and you know and practice things like test-driven development, the SOLID principles, what the Law of Demeter is, and why all of this matters, then you are most [...]

Post a comment