public void GridViewListBoxItemAccessibleObject_Name_ReturnsExpected(string testName)
        {
            using GridViewListBox control = new(new PropertyGridView(null, null));
            Type type = typeof(PropertyGridView)
                        .GetNestedType("GridViewListBoxItemAccessibleObject", BindingFlags.NonPublic | BindingFlags.Instance);
            var itemEntry        = new ItemArray.Entry(testName);
            var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, new object[] { control, itemEntry });

            Assert.Equal(itemEntry.ToString(), accessibleObject.Name);
            Assert.False(control.IsHandleCreated);
        }
 public GridViewListBoxItemAccessibleObject(GridViewListBox owningGridViewListBox, ItemArray.Entry owningItem)
     : base(owningGridViewListBox, owningItem, (ListBoxAccessibleObject)owningGridViewListBox.AccessibilityObject)
 {
     _owningGridViewListBox = owningGridViewListBox;
     _owningItem            = owningItem;
 }
 private protected override ListBoxItemAccessibleObject CreateItemAccessibleObject(ListBox listBox, ItemArray.Entry item)
 => new CheckedListBoxItemAccessibleObject((CheckedListBox)listBox, item, this);