This reminded me of some TDD sessions I did, where I tried to scramble around code until I made the test green. My thoughts about here
A better approach would have been to think about the problem more in advance and then start coding. TDD works but you still need to think!!
How do you solve problems?
Do you use a synthetic approach?