The Mock<(Of <(T>)>) type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Mock<(Of <(T>)>) | Overloaded. |
Methods
| Name | Description | |
|---|---|---|
| As<(Of <(TInterface>)>) |
Adds an interface implementation to the mock,
allowing setups to be specified for it.
(Inherited from Mock.) | |
| OnGetObject |
Returns the mocked object value.
(Overrides Mock..::.OnGetObject()()().) | |
| Raise | Overloaded. | |
| Setup | Overloaded. | |
| SetupAllProperties |
Specifies that the all properties on the mock should have "property behavior",
meaning that setting its value will cause it to be saved and
later returned when the property is requested. (this is also
known as "stubbing"). The default value for each property will be the
one generated as specified by the DefaultValue property for the mock.
| |
| SetupGet<(Of <(TProperty>)>) |
Specifies a setup on the mocked type for a call to
to a property getter.
| |
| SetupProperty | Overloaded. | |
| SetupSet | Overloaded. | |
| Verify | Overloaded. | |
| VerifyAll |
Verifies all expectations regardless of whether they have
been flagged as verifiable.
(Inherited from Mock.) | |
| VerifyGet | Overloaded. | |
| VerifySet | Overloaded. |
Properties
| Name | Description | |
|---|---|---|
| Behavior |
Behavior of the mock, according to the value set in the constructor.
(Inherited from Mock.) | |
| 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).
(Inherited from Mock.) | |
| DefaultValue |
Specifies the behavior to use when returning default values for
unexpected invocations on loose mocks.
(Inherited from Mock.) | |
| Object |
Exposes the mocked object instance.
|