The MockFactory type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MockFactory |
Initializes the factory with the given defaultBehavior
for newly created mocks from the factory.
|
Methods
Name | Description | |
---|---|---|
Create<(Of <<'(T>)>>)()()()() |
Creates a new mock with the default MockBehavior
specified at factory construction time.
| |
Create<(Of <<'(T>)>>)(array<Object>[]()[][]) |
Creates a new mock with the default MockBehavior
specified at factory construction time and with the
the given constructor arguments for the class.
| |
Create<(Of <<'(T>)>>)(MockBehavior) |
Creates a new mock with the given behavior.
| |
Create<(Of <<'(T>)>>)(MockBehavior, array<Object>[]()[][]) |
Creates a new mock with the given behavior
and with the the given constructor arguments for the class.
| |
CreateMock<(Of <<'(T>)>>) |
Implements creation of a new mock within the factory.
| |
Verify |
Verifies all verifiable expectations on all mocks created
by this factory.
| |
VerifyAll |
Verifies all verifiable expectations on all mocks created
by this factory.
| |
VerifyMocks |
Invokes verifyAction for each mock
in Mocks, and accumulates the resulting
MockVerificationException that might be
thrown from the action.
|
Properties
Name | Description | |
---|---|---|
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.
| |
Mocks |
Gets the mocks that have been created by this factory and
that will get verified together.
|