Question 1 of 6
What is the main purpose of using a Mock as a dependency in a unit test?
The code under test should still run; only the chosen boundary is substituted.
A mock isolates a collaborator and records how it is used. The real behavior owned by the unit test should still execute.
Review this lesson