IMock Properties

Moq 2.6

The IMock type exposes the following members.

Properties

  NameDescription
CallBase
Whether the base member virtual implementation will be called for mocked classes if no expectation is met. Defaults to trueTruetruetrue (True in Visual Basic).
DefaultValue
Determines how to generate default values for loose mocks on unexpected invocations.
Object
The mocked object instance.

See Also