diff --git a/Source/MockException.cs b/Source/MockException.cs index e9ae80df0..56d2c498e 100644 --- a/Source/MockException.cs +++ b/Source/MockException.cs @@ -114,6 +114,14 @@ internal ExceptionReason Reason get { return reason; } } + /// + /// Indicates whether this exception is a verification fault raised by Verify() + /// + public bool IsVerificationError + { + get { return reason == ExceptionReason.VerificationFailed; } + } + private static string GetMessage( MockBehavior behavior, ICallContext invocation,