The MockObject type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | CallBase | (Inherited from Mock.) |
![]() | CallStatic |
Allow mocking a static method when that method is overloaded with an instance method
(Inherited from Mock.)Remarks |
![]() | MockedInstance |
Get the actual instance that is being mocked and controlled. This
enables tracking instance mocks to the actual instance
(Inherited from Mock.) |
![]() | MockedType |
Get the type that is mocked and controlled.
(Inherited from Mock.) |
![]() | Object |
Get the Mocked Object
|
![]() | Strict |
Can set the mock to be Strict
The default is the Methods of Abstract and Interfaces are Strict and Arbitrary calls fail
while Arbitrary Methods of concrete classes are allowed.
(Inherited from Mock.) |
![]() | StrictStatic |
Can set the static methods of a mocked type to be Strict
(Inherited from Mock.) |
![]() | ValidateArgsOnVerify | Obsolete.
Obslolete. Argument validation is done both on calling the method and during Verify.
(Inherited from Mock.) |
See Also