public void TableLayoutPanelAccessibilityObject_Ctor_Default() { using TableLayoutPanel tableLayoutPanel = new TableLayoutPanel(); tableLayoutPanel.CreateControl(); Assert.NotNull(tableLayoutPanel.AccessibilityObject); Assert.True(tableLayoutPanel.IsHandleCreated); }
public void TableLayoutPanelAccessibilityObject_Role_IsClient_ByDefault() { using TableLayoutPanel tableLayoutPanel = new TableLayoutPanel(); tableLayoutPanel.CreateControl(); // AccessibleRole is not set = Default AccessibleRole actual = tableLayoutPanel.AccessibilityObject.Role; Assert.Equal(AccessibleRole.Client, actual); Assert.True(tableLayoutPanel.IsHandleCreated); }
public void TableLayoutPanelAccessibilityObject_ControlType_IsPane_IfAccessibleRoleIsDefault() { using TableLayoutPanel tableLayoutPanel = new TableLayoutPanel(); tableLayoutPanel.CreateControl(); // AccessibleRole is not set = Default object actual = tableLayoutPanel.AccessibilityObject.GetPropertyValue(UiaCore.UIA.ControlTypePropertyId); Assert.Equal(UiaCore.UIA.PaneControlTypeId, actual); Assert.True(tableLayoutPanel.IsHandleCreated); }