Mock(T) Properties

Moq

Collapse imageExpand ImageCopy imageCopyHover image

The Mock<(Of <(<'T>)>)> type exposes the following members.

Properties

  NameDescription
Public propertyBehavior
Behavior of the mock, according to the value set in the constructor.
(Inherited from Mock.)
Public propertyCallBase
Whether the base member virtual implementation will be called for mocked classes if no setup is matched. Defaults to falseFalsefalsefalse (False in Visual Basic).
(Inherited from Mock.)
Public propertyDefaultValue
Specifies the behavior to use when returning default values for unexpected invocations on loose mocks.
(Inherited from Mock.)
Public propertyObject
Exposes the mocked object instance.

See Also