//---------------------------------------------------------------------------
// Wrapper for TextPatternRange.Compare Method
//---------------------------------------------------------------------------
internal void Range_Compare(TextPatternRange callingRange, TextPatternRange argumentRange, ref bool isEqual, Type expectedException, CheckType checkType)
{
string call = "TextPatternRange.Compare(" + argumentRange + ")";
if (callingRange == null)
throw new ArgumentNullException(call + " requires non-NULL TextPatterncallingRange");
try
{
isEqual = callingRange.Compare(argumentRange);
Comment("---Called " + call + ", returned = " + isEqual);
}
catch (Exception actualException)
{
if (Library.IsCriticalException(actualException))
throw;
Comment("---Calling " + call);
TestException(expectedException, actualException, call, checkType);
return;
}
TestNoExceptionQuiet(expectedException, call, checkType);
}