Test.Mock Class
Creates a new mock object.
Methods
expect
(
Void
static
-
mock
-
expectation
Assigns an expectation to a mock object. This is used to create methods and properties on the mock object that are monitored for calls and changes, respectively.
Parameters:
Returns:
Void:
verify
(
Void
static
-
mock
Verifies that all expectations of a mock object have been met and throws an assertion error if not.
Parameters:
-
mock
ObjectThe object to verify..
Returns:
Void: