Mock Properties

Typemock Isolator Developer Guide

The Mock type exposes the following members.

Properties

  NameDescription
Public propertyCallBase
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
Public propertyMockedInstance
Get the actual instance that is being mocked and controlled. This enables tracking instance mocks to the actual instance
Public propertyMockedType
Get the type that is mocked and controlled.
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.
Public propertyStrictStatic
Can set the static methods of a mocked type to be Strict
Public propertyValidateArgsOnVerify Obsolete.
Obslolete. Argument validation is done both on calling the method and during Verify.
Top
See Also

Reference