The MockFactory type exposes the following members.

Constructors

  NameDescription
MockFactory
Initializes the factory with the given defaultBehavior for newly created mocks from the factory.

Methods

  NameDescription
CreateOverloaded.
Verify
Verifies all verifiable expectations on all mocks created by this factory.
VerifyAll
Verifies all verifiable expectations on all mocks created by this factory.

Properties

  NameDescription
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.

See Also