What is the answer to this question? when should the developer test cases be written?
before writing the code