Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New to TDD: Are there sample applications with tests to show how to do TDD?

I really want to get into TDD development but I have no point of reference where to start.

I think that looking at code and seeing how they write tests and make classes testable that it'll be easier for me to digest and start using myself.

Is anyone aware of any sample or small open source C# applications that include unit tests?

like image 500
Chris Thompson Avatar asked Jul 18 '09 00:07

Chris Thompson


2 Answers

For shakalpesh,

I would recommend the ObjectMentor katas.

  • One is to create a bowling game scoring algorithm
  • Another is to convert infix expressions to postfix. (The shunting yard algorithm)

Bolwing Game

Shunting Yard Algorithm

like image 54
daveb Avatar answered Oct 31 '22 00:10

daveb


I highly recommend "Test Driven Development: By Example (Addison-Wesley Signature Series)" by Kent Beck.

Far, far better than any other resources I've found on the net or elsewhere. Well worth the $40 - $50.

like image 36
James Hugard Avatar answered Oct 31 '22 00:10

James Hugard