Question: when should the developer test cases be written
Answer: This is a differentiating feature of test - driven development versus writing unit tests after the code is written : it makes the developer focus on the requirements before writing the code , a subtle but important difference .