IProtectedMock(TMock) Members

Moq

Collapse imageExpand ImageCopy imageCopyHover image

The IProtectedMock<(Of <(<'TMock>)>)> type exposes the following members.

Methods

  NameDescription
Public methodSetup(String, array<Object>[]()[][])
Specifies a setup for a void method invocation with the given voidMethodName, optionally specifying arguments for the method call.
Public methodSetup<(Of <<'(TResult>)>>)(String, array<Object>[]()[][])
Specifies a setup for an invocation on a property or a non void method with the given methodOrPropertyName, optionally specifying arguments for the method call.
Public methodSetupGet<(Of <<'(TProperty>)>>)
Specifies a setup for an invocation on a property getter with the given propertyName.
Public methodSetupSet<(Of <<'(TProperty>)>>)
Specifies a setup for an invocation on a property setter with the given propertyName.
Public methodVerify(String, Times, array<Object>[]()[][])
Specifies a verify for a void method with the given methodName, optionally specifying arguments for the method call. Use in conjuntion with the default Loose.
Public methodVerify<(Of <<'(TResult>)>>)(String, Times, array<Object>[]()[][])
Specifies a verify for an invocation on a property or a non void method with the given methodName, optionally specifying arguments for the method call.
Public methodVerifyGet<(Of <<'(TProperty>)>>)
Specifies a verify for an invocation on a property getter with the given propertyName. The invocation was not call the times specified by times.
Public methodVerifySet<(Of <<'(TProperty>)>>)
Specifies a setup for an invocation on a property setter with the given propertyName.

See Also