IMock(T) Members

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.

Properties

  NameDescription
Behavior
Behavior of the mock, according to the value set in the constructor.
DefaultValue
Specifies the behavior to use when returning default values for unexpected invocations.
Object
Exposes the mocked object instance.

See Also