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

Constructors

  NameDescription
Mock<(Of <(T>)>)Overloaded.

Methods

  NameDescription
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()()().)
RaiseOverloaded.
SetupOverloaded.
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.
SetupPropertyOverloaded.
SetupSetOverloaded.
VerifyOverloaded.
VerifyAll
Verifies all expectations regardless of whether they have been flagged as verifiable.
(Inherited from Mock.)
VerifyGetOverloaded.
VerifySetOverloaded.

Properties

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

See Also