IMock(T) Methods

Moq 2.6

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

Methods

  NameDescription
As<(Of <(TInterface>)>)
Adds an interface implementation to the mock, allowing expectations to be set for it.
ExpectOverloaded.
ExpectGet<(Of <(TProperty>)>)
Sets an expectation on the mocked type for a call to to a property getter.
ExpectSetOverloaded.
VerifyOverloaded.
VerifyAll
Implements VerifyAll()()().
VerifyGet<(Of <(TProperty>)>)
Verifies that a property was read on the mock. Use in conjuntion with the default Loose.
VerifySetOverloaded.

See Also