Compare() public method

public Compare ( TextPatternRange range ) : bool
range TextPatternRange
return bool
Ejemplo n.º 1
0
        //---------------------------------------------------------------------------
        // 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);
        }