I’m really getting into this development paradigm of writing tests before you write a line of code. It makes you think about what you want from that particular method and then you make sure that’s what the method is returning. It gives me confidence that my code works in isolation, then acceptance or functional tests can prove that the whole system works to the client.
My next step is understanding and using mocks. Perhaps I’ll write a post here explaining how to set up testing properly, I find a lot of confusing information on the web.