Verify Method

Moq

Collapse imageExpand ImageCopy imageCopyHover image

Overload List

  NameDescription
Public methodVerify()()()()
Verifies that all verifiable expectations have been met.
(Inherited from Mock.)
Public methodVerify(Expression<(Of <<'(Action<(Of <<'(T>)>>)>)>>))
Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjuntion with the default Loose.
Public methodVerify<(Of <<'(TResult>)>>)(Expression<(Of <<'(Func<(Of <(<'T, TResult>)>)>>)>>))
Public methodVerify(Expression<(Of <<'(Action<(Of <<'(T>)>>)>)>>), Times)
Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjuntion with the default Loose.
Public methodVerify(Expression<(Of <<'(Action<(Of <<'(T>)>>)>)>>), String)
Verifies that a specific invocation matching the given expression was performed on the mock, specifying a failure error message. Use in conjuntion with the default Loose.
Public methodVerify<(Of <<'(TResult>)>>)(Expression<(Of <<'(Func<(Of <(<'T, TResult>)>)>>)>>), Boolean)
Verify<(Of <<'(TResult>)>>)(Expression<(Of <<'(Func<(Of <(<'T, TResult>)>)>>)>>), Boolean)
Public methodVerify(Expression<(Of <<'(Action<(Of <<'(T>)>>)>)>>), Times, String)
Verifies that a specific invocation matching the given expression was performed on the mock, specifying a failure error message. Use in conjuntion with the default Loose.
Public methodVerify<(Of <<'(TResult>)>>)(Expression<(Of <<'(Func<(Of <(<'T, TResult>)>)>>)>>), Boolean, T)

See Also