public void ToolStripGripAccessibleObject_Ctor_Default()
        {
            using ToolStripGrip toolStripGrip = new ToolStripGrip();
            ToolStripGripAccessibleObject accessibleObject = new ToolStripGripAccessibleObject(toolStripGrip);

            Assert.Equal(toolStripGrip, accessibleObject.Owner);
        }
        public void ToolStripGripAccessibleObject_Role_IsGrip_ByDefault()
        {
            using ToolStripGrip toolStripGrip = new ToolStripGrip();
            // AccessibleRole is not set = Default

            AccessibleRole actual = toolStripGrip.AccessibilityObject.Role;

            Assert.Equal(AccessibleRole.Grip, actual);
        }
        public void ToolStripGripAccessibleObject_ControlType_IsThumb_IfAccessibleRoleIsDefault()
        {
            using ToolStripGrip toolStripGrip = new ToolStripGrip();
            // AccessibleRole is not set = Default

            object actual = toolStripGrip.AccessibilityObject.GetPropertyValue(UiaCore.UIA.ControlTypePropertyId);

            Assert.Equal(UiaCore.UIA.ThumbControlTypeId, actual);
        }
        public void ToolStripGripAccessibleObject_GetPropertyValue_ControlType_IsExpected_ForCustomRole(AccessibleRole role)
        {
            using ToolStripGrip toolStripGrip = new ToolStripGrip();
            toolStripGrip.AccessibleRole      = role;

            object actual = toolStripGrip.AccessibilityObject.GetPropertyValue(UiaCore.UIA.ControlTypePropertyId);

            UiaCore.UIA expected = AccessibleRoleControlTypeMap.GetControlType(role);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 5
0
 public ToolStripGripAccessibleObject(ToolStripGrip owner) : base(owner)
 {
 }
 public ToolStripGripAccessibleObject(ToolStripGrip owner) : base(owner)
 {
 }