home

Code for Section 5: TDD - Favorites Example

Skip Navigation Links
 
Skip Navigation Links.

Section 5

Practice Test-Driven Development is concerned with helping a team improve the quality of the code they develop by driving its design and implemention with tests. These test also serve as a specification for the code.

Chapter 13: TDD in C# without tools

This download contains the result of following the exercises in Chapters 13 which aims to convince you that there is nothing fundamentally difficult about Test-First Programming (or TDD). It contains the sort of code you might write when you're learning to program in C# and doesn't require the use of any special tools.

Chapters 14-17: TDD in C# with the VSTS Unit Test Tool

This download contains the result of following the exercises in Chapters 14 to 17. In these exercises you will acheive the following:

  • Setup a Visual Studio Project for Unit Testing
  • Create a list of tests to drive the developement of the code for your 'Image Favorities' Story
  • Work through the list of tests, implementing the code to make them pass and refactoring as you go
  • Gain of experience of doing small and large refactorings
  • Produce Code Coverage and Performance information
  • Learn how to integrate test-first programming with the development of a user interface

Downloads

  • VSTSCode - Open Source project hosted at Codeplex