Knowledge quiz

It’s time to put what you’ve learned to the test, get 7 questions right to pass this week.

1.

When do you need to change the product code first before you can write isolated tests?

Choose the correct answer.
2.

Which test double implementations were shown in the course?

There are two correct answers.
3.

What kind of output of a code under test can a test case verify?

There are two correct answers.
4.

Where should unit tests discover errors?

Choose the correct answer.
5.

What does a Spy test double do?

Choose the correct answer.
6.

How can you limit the possible error locations discovered by unit tests?

Choose the correct answer.
7.

Which of the following statements describes the technique of "lazy instantiation" for depended-on components?

Choose the correct answer.
8.

Which of the following are injection mechanisms for isolated tests?

There are two correct answers.

Log in to track your progress & complete quizzes