MockObject Properties

Typemock Isolator Developer Guide

The MockObject type exposes the following members.

Properties

  NameDescription
Public propertyCallBase (Inherited from Mock.)
Public propertyCallStatic
Allow mocking a static method when that method is overloaded with an instance method
Remarks

In most cases there is no need to use this method as Typemock Isolator will mock all static methods of the mocked type. CallStatic should be used when an instance method and a static method have the same name By default the instance methods are returned. If instance methods are mocked
(Inherited from Mock.)
Public propertyMockedInstance
Get the actual instance that is being mocked and controlled. This enables tracking instance mocks to the actual instance
(Inherited from Mock.)
Public propertyMockedType
Get the type that is mocked and controlled.
(Inherited from Mock.)
Public propertyObject
Get the Mocked Object
Public propertyStrict
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.)
Public propertyStrictStatic
Can set the static methods of a mocked type to be Strict
(Inherited from Mock.)
Public propertyValidateArgsOnVerify Obsolete.
Obslolete. Argument validation is done both on calling the method and during Verify.
(Inherited from Mock.)
Top
See Also

Reference