Moq |
Mock<(Of <(<'T>)>)>..::..Verify Method (Expression<(Of <(<'Action<(Of <(<'T>)>)>>)>)>, Times, String) |
Mock<(Of <(<'T>)>)> Class See Also Send Feedback |
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.
Namespace: Moq
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)
Syntax
C# |
---|
public void Verify( Expression<Action<T>> expression, Times times, string failMessage ) |
Parameters
- expression
- Type: System.Linq.Expressions..::..Expression<(Of <(<'Action<(Of <(<'T>)>)>>)>)>
Expression to verify.
- times
- Type: Moq..::..Times
The number of times a method is allowed to be called.
- failMessage
- Type: System..::..String
Message to show if verification fails.
Exceptions
Exception | Condition |
---|---|
Moq..::..MockException | The invocation was not call the times specified by times. |