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

Methods

  NameDescription
As<(Of <(TInterface>)>)
Adds an interface implementation to the mock, allowing setups to be specified for it.
GetObject
Returns the mocked object value.
(Inherited from Mock.)
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.

See Also