The Mock type exposes the following members.

Properties

  NameDescription
Behavior
Behavior of the mock, according to the value set in the constructor.
CallBase
Whether the base member virtual implementation will be called for mocked classes if no setup is matched. Defaults to falseFalsefalsefalse (False in Visual Basic).
DefaultValue
Specifies the behavior to use when returning default values for unexpected invocations on loose mocks.
Object
Gets the mocked object instance, which is of the mocked type T.

See Also