Exemplo n.º 1
0
 void CheckProperties(AutomationWrapper node)
 {
     // Get code coverage on the boring stuff.
     Trace.WriteLine("Name=" + node.Name);
     // not all nodes support a ValuePattern (comment, pi, cdata).
     //Trace.WriteLine("\tValue=" + node.Value);
     Trace.WriteLine("\tParent=" + node.Parent.Name);
     Trace.WriteLine("\tChildCount=" + node.GetChildCount());
     Trace.WriteLine("\tBounds=" + node.Bounds.ToString());
     //Trace.WriteLine("\tDefaultAction=" + node.DefaultAction);
     //Trace.WriteLine("\tDescription=" + node.Description);
     Trace.WriteLine("\tHelp=" + node.Help);
     Trace.WriteLine("\tKeyboardShortcut=" + node.KeyboardShortcut);
     Trace.WriteLine("\tRole=" + node.Role);
     //Trace.WriteLine("\tState=" + node.State);
     //string filename = null;
     //Trace.WriteLine("\tHelpTopic=" + node.GetHelpTopic(out filename));
 }