//---------------------------------------------------------------------------
// Wrapper for TextPatternRange.MoveEndpointByRange Method
//---------------------------------------------------------------------------
internal void Range_MoveEndpointByRange(TextPatternRange callingRange, TextPatternRangeEndpoint endPoint, TextPatternRange argumentRange, TextPatternRangeEndpoint targetEndPoint, Type expectedException, CheckType checkType)
{
string call = "TextPatternRange.MoveEndpointByRange(" + endPoint + ", " + argumentRange + ", " + targetEndPoint + ")";
Comment("---Calling " + call);
if (callingRange == null)
throw new ArgumentNullException(call + " requires non-NULL TextPatterncallingRange");
try
{
callingRange.MoveEndpointByRange(endPoint, argumentRange, targetEndPoint);
}
catch (Exception actualException)
{
if (Library.IsCriticalException(actualException))
throw;
TestException(expectedException, actualException, call, checkType);
return;
}
TestNoExceptionQuiet(expectedException, call, checkType);
}