public void TextBoxBaseUiaTextProvider_RangeFromChild_DoesntThrowAnException() { using (new NoAssertContext()) { using TextBoxBase textBoxBase = new SubTextBoxBase(); TextBoxBaseUiaTextProvider provider = new TextBoxBaseUiaTextProvider(textBoxBase); // RangeFromChild doesn't throw an exception UiaCore.ITextRangeProvider range = provider.RangeFromChild(textBoxBase.AccessibilityObject); // RangeFromChild implementation can be changed so this test can be changed too Assert.Null(range); } }