Skip to content

Commit

Permalink
differentiate verification error from mock crash
Browse files Browse the repository at this point in the history
  • Loading branch information
quetzalcoatl committed Jun 20, 2012
1 parent 8f948a8 commit 131e735
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/MockException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ internal ExceptionReason Reason
get { return reason; }
}

/// <summary>
/// Indicates whether this exception is a verification fault raised by Verify()
/// </summary>
public bool IsVerificationError
{
get { return reason == ExceptionReason.VerificationFailed; }
}

private static string GetMessage(
MockBehavior behavior,
ICallContext invocation,
Expand Down

0 comments on commit 131e735

Please sign in to comment.