Mock objects are primarily used to ______ the interactions between the object under test and its dependencies.

  • Record
  • Ignore
  • Validate
  • Isolate
Mock objects are primarily used to validate or verify the interactions between the object under test and its dependencies. They record method calls and parameters and allow you to assert that certain interactions occurred during the test.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *