A — Add a test, run all tests, write the code, run tests, refactor code
B — Run all tests, write the code, add a test, run tests, refactor code
C — Write the code, run all tests, add a test, run tests, refactor code
D — None of the above
Answer 1
A — Add a test, run all Tests, Write the Code, Run tests, Refactor code
A — Separate common set-up and tear-down logic from the tests cases
B — Treat test code with the same respect as production code
C — Execute test methods in an order that ensures the state left by each test is what the next test requires
D — None of the above
Answer 2
C — Execute test methods in an order that ensures the state left by each test is what the next test requires
A — TDD may result in more unit tests
B — TDD can lead to more modularized code
C — TDD tends to result in tests that cover every code path
D — All of the above
Answer 3
D — All of the above
Answer 4
False