Skip to content

Commit

Permalink
Merge pull request #16 from quetzalcoatl/issue-15-mockex-vs-verferror
Browse files Browse the repository at this point in the history
differentiate verification error from mock crash
  • Loading branch information
kzu committed Jun 21, 2012
2 parents cec4d7d + 131e735 commit 7fa3e0a
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 7fa3e0a

Please sign in to comment.