What are two reasons to use mock objects in unit tests?
Mock objects are simulating the behavior of dependencies such as persistance layers or APIs. By mocking these you can be sure about what you are testing, and not accidentally testing the external dependency.
Tamesha
16 days ago