







The Mock type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
![]() | As<(Of <<'(TInterface>)>>) |
Adds an interface implementation to the mock,
allowing setups to be specified for it.
|
![]() ![]() | Get<(Of <<'(T>)>>) |
Retrieves the mock object for the given object instance.
|
![]() ![]() | Of<(Of <<'(T>)>>)()()()() |
Creates an mock object of the indicated type.
|
![]() ![]() | Of<(Of <<'(T>)>>)(Expression<(Of <<'(Func<(Of <(<'T, TResult>)>)>>)>>)) | |
![]() | OnGetObject |
Returns the mocked object value.
|
![]() | SetReturnsDefault<(Of <<'(TReturn>)>>) | |
![]() | Verify |
Verifies that all verifiable expectations have been met.
|
![]() | VerifyAll |
Verifies all expectations regardless of whether they have
been flagged as verifiable.
|
Properties
Name | Description | |
---|---|---|
![]() | 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.
|