Example #1
0
 public static void AutomationElementToString(AutomationElement element)
 {
     Dump("ToString()", true, element);
     try
     {
         object obj = element.ToString();
     }
     catch (Exception exception)
     {
         VerifyException(element, exception, typeof(ElementNotAvailableException));
     }
 }
 //---------------------------------------------------------------------------
 // TestStep for TextPatternRange.GetEnclosingElement Method
 //---------------------------------------------------------------------------
 internal void TS_GetEnclosingElement(TextPatternRange range, ref AutomationElement parent, Type expectedException, CheckType checkType)
 {
     Range_GetEnclosingElement(range, ref parent, expectedException, checkType);
     Comment("TS_GetEnclosingElement() returned " + parent.ToString());
     m_TestStep++;
 }