How to get started with TDD?

After my presentation about Test-Driven Development (TDD) at VSLive the other day, a couple of guys told me that they love the idea of TDD, but they have a hard time getting started each time they try. One of them said that he had a couple of setters and getters, some add methods, and some calculations, but itís very hard to know where to add tests.

I think the problem here is that there has been a bit too much detailed up-front design and that actually makes it harder to get going with TDD. Forget about the properties for a while and focus on one of the calculations, write a test for a simple step in the calculation, write the code, refactor, write another test, and so on. That will probably show the properties that are really needed. That should get you started.

Sure, it is a bit hard to get going with the TDD thinking. You need to force yourself for a couple of days. After that, you probably won't want to go back.