1.

Explain unit testing using Mock Objects.

Answer»

The common coding style for testing with mock objects is to −

  • Create instances of mock objects.
  • Set state and expectations in the mock objects.
  • Invoke domain code with mock objects as parameters.
  • Verify consistency in the mock objects.


Discussion

No Comment Found