testing-concept-tdd-steps

blog-post-safely-refactor-tests#steps-in-tdd
 

"Write the simplest production code possible" is surprising the first time you see it. It literally means hard-coding an answer in a method. If hard-coding the answer means the code isn't flexible enough to accommodate your cases, that means you need to do step 4 and add more tests.

Referring Pages

codedtested