public void CheckedListBoxAccessibleObject_Role_IsExpected_ByDefault(bool createControl, AccessibleRole expectedRole)
        {
            using CheckedListBox checkedListBox = new CheckedListBox();
            // AccessibleRole is not set = Default

            if (createControl)
            {
                checkedListBox.CreateControl();
            }

            AccessibleRole actual = checkedListBox.AccessibilityObject.Role;

            Assert.Equal(expectedRole, actual);
            Assert.Equal(createControl, checkedListBox.IsHandleCreated);
        }
        public void CheckedListBoxAccessibleObject_ControlType_IsExpected_IfAccessibleRoleIsDefault(bool createControl, int expectedType)
        {
            using CheckedListBox checkedListBox = new CheckedListBox();
            // AccessibleRole is not set = Default

            if (createControl)
            {
                checkedListBox.CreateControl();
            }

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

            Assert.Equal((UiaCore.UIA)expectedType, actual);
            Assert.Equal(createControl, checkedListBox.IsHandleCreated);
        }