diff --git a/src/Moq/Mock`1.cs b/src/Moq/Mock`1.cs index 83f757a67..527c5afa7 100644 --- a/src/Moq/Mock`1.cs +++ b/src/Moq/Mock`1.cs @@ -1033,6 +1033,22 @@ public void Verify(Expression> expression, Func Mock.Verify(this, expression, times(), null); } + /// + /// Verifies that a specific invocation matching the given expression was performed on the mock, + /// specifying a failure error message. + /// + /// Expression to verify. + /// The number of times a method is expected to be called. + /// Message to show if verification fails. + /// Type of return value from the expression. + /// + /// The invocation was not called the number times specified by . + /// + public void Verify(Expression> expression, Func times, string failMessage) + { + Mock.Verify(this, expression, times(), failMessage); + } + /// /// Verifies that a specific invocation matching the given expression was performed on the mock, /// specifying a failure error message.