internal static SequenceVerifyException OutOfSequenceException(int loop, int call) { var exception = new SequenceVerifyException("Out of sequence", loop, call); exception.OutOfSequence = true; return(exception); }
internal static SequenceVerifyException InsufficientCallsException(int loop, int call) { var exception = new SequenceVerifyException("Insufficient calls", loop, call); exception.InsufficientCalls = true; return(exception); }
internal static SequenceVerifyException TooManyCallsException(int expectedCount, int actualCount) { var exception = new SequenceVerifyException("Too many calls"); exception.TooManyCalls = true; exception.ExpectedCount = expectedCount; exception.ActualCount = actualCount; return(exception); }