28 overrides of GetChild
System.Windows.Forms (26)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
58
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
35
public override AccessibleObject?
GetChild
(int index) =>
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
98
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
391
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
250
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
39
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
41
public override AccessibleObject?
GetChild
(int index) =>
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
186
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
90
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
254
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
149
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObject.cs (1)
25
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
380
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
44
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
26
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
41
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (1)
90
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
68
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
33
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainUpDownAccessibleObject.cs (1)
27
public override AccessibleObject?
GetChild
(int index) => _upDownBaseAccessibleObject.GetChild(index);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownBaseAccessibleObject.cs (1)
13
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.cs (1)
51
public override AccessibleObject?
GetChild
(int index) => index switch
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
44
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Panels\Panel.PanelAccessibleObject.cs (1)
23
public override AccessibleObject?
GetChild
(int index) =>
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (1)
40
public override AccessibleObject?
GetChild
(int index)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
54
public override AccessibleObject?
GetChild
(int index)
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (1)
25
public override AccessibleObject?
GetChild
(int id)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
65
public override AccessibleObject?
GetChild
(int index)
703 references to GetChild
System.Windows.Forms (49)
System\Windows\Forms\Accessibility\AccessibleObject.cs (7)
434
AccessibleObject? child =
GetChild
(index);
502
AccessibleObject? child =
GetChild
(index);
545
AccessibleObject? child =
GetChild
(index);
2024
return
GetChild
(index);
2042
return index >= 0 && index < GetChildCount() ?
GetChild
(index) : null;
2603
return
GetChild
(0);
2605
return
GetChild
(GetChildCount() - 1);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6805
return AccessibilityObject.
GetChild
(objectId - 1);
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (2)
166
return _ownerDataGridView.AccessibilityObject.
GetChild
(1);
208
return _ownerDataGridView.Rows.Count == 0 ? null : Parent.
GetChild
(1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (4)
514
return childCount > 0 ? previousRow.
GetChild
(childCount - 1) : null;
519
return _owner.DataGridView.RowHeadersVisible ? _owner.OwningRow.AccessibilityObject.
GetChild
(0) : null;
549
return _owner.DataGridView.RowHeadersVisible ? nextRow.
GetChild
(1) : nextRow.
GetChild
(0);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (4)
68
: Owner.DataGridView?.AccessibilityObject.
GetChild
(0);
173
return Owner.DataGridView.RowHeadersVisible ? Parent?.
GetChild
(0) : null;
178
return Parent?.
GetChild
(VisibleIndex - 1);
197
return visibleIndex < 0 ? null : Parent?.
GetChild
(visibleIndex + 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (3)
347
: _owningDataGridViewRow.DataGridView.AccessibilityObject.
GetChild
(visibleIndex + 1);
358
return _owningDataGridViewRow.DataGridView.AccessibilityObject.
GetChild
(VisibleIndex - 1);
363
return ParentPrivate?.
GetChild
(0);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (2)
49
AccessibleObject? child = _owningDataGridViewRow.AccessibilityObject.
GetChild
(i);
72
AccessibleObject? child = _owningDataGridViewRow.AccessibilityObject.
GetChild
(i);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (10)
150
? ParentPrivate?.
GetChild
(1) // go to the next sibling
169
return Owner.DataGridView.AccessibilityObject.
GetChild
(actualDisplayIndex)?.
GetChild
(0);
182
Debug.Assert(Owner.DataGridView.TopLeftHeaderCell.AccessibilityObject == Owner.DataGridView.AccessibilityObject.
GetChild
(0)!.
GetChild
(0));
183
return Owner.DataGridView.AccessibilityObject.
GetChild
(0)?.
GetChild
(0);
195
return Owner.DataGridView.AccessibilityObject.
GetChild
(actualDisplayIndex)?.
GetChild
(0);
262
? Owner.OwningRow.AccessibilityObject.
GetChild
(1) // go to the next sibling
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (3)
258
return Owner.DataGridView.AccessibilityObject.
GetChild
(0)?.
GetChild
(1);
279
return dataGridView.AccessibilityObject.
GetChild
(0);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
799
AccessibleObject? checkedItem = AccessibilityObject.
GetChild
(ice.Index);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1883
AccessibilityObject?.
GetChild
(Items.Count - 1)?.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
138
return childIndex == InvalidIndex ? null : parentInternal.
GetChild
(childIndex + 1);
140
return parentInternal.
GetChild
(parentInternal.GetChildIndex(this) - 1);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (1)
69
NavigateDirection.NavigateDirection_NextSibling => Parent.
GetChild
(1),
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (2)
38
return childIndex == InvalidIndex ? null : _parentInternal.
GetChild
(childIndex + 1);
40
return _parentInternal.
GetChild
(_parentInternal.GetChildIndex(this) - 1);
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (2)
101
NavigateDirection.NavigateDirection_NextSibling => OwningTabControl.AccessibilityObject.
GetChild
(GetChildId() + 1),
102
NavigateDirection.NavigateDirection_PreviousSibling => OwningTabControl.AccessibilityObject.
GetChild
(GetChildId() - 1),
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (1)
97
return _owner.DropDown.AccessibilityObject.
GetChild
(index);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (2)
69
NavigateDirection.NavigateDirection_NextSibling => _up ? Parent.
GetChild
(1) : null,
70
NavigateDirection.NavigateDirection_PreviousSibling => _up ? null : Parent.
GetChild
(0),
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
51
return base.
GetChild
(index);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (2)
67
if (_control.AccessibilityObject.
GetChild
(index) is Control.ControlAccessibleObject childAccObj)
76
return _control.AccessibilityObject.
GetChild
(index);
System.Windows.Forms.Tests (629)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (127)
77
Assert.Null(accessibleObject.
GetChild
(index));
133
.Setup(a => a.
GetChild
(0))
136
.Setup(a => a.
GetChild
(1))
167
.Setup(a => a.
GetChild
(0))
170
.Setup(a => a.
GetChild
(1))
173
.Setup(a => a.
GetChild
(2))
242
.Setup(a => a.
GetChild
(0))
245
.Setup(a => a.
GetChild
(1))
276
.Setup(a => a.
GetChild
(0))
279
.Setup(a => a.
GetChild
(1))
282
.Setup(a => a.
GetChild
(2))
357
.Setup(a => a.
GetChild
(0))
360
.Setup(a => a.
GetChild
(1))
391
.Setup(a => a.
GetChild
(0))
394
.Setup(a => a.
GetChild
(1))
397
.Setup(a => a.
GetChild
(2))
437
.Setup(a => a.
GetChild
(0))
444
mockAccessibleObject.Verify(a => a.
GetChild
(0), Times.Once());
456
.Setup(a => a.
GetChild
(childCount - 1))
463
mockAccessibleObject.Verify(a => a.
GetChild
(childCount - 1), Times.Once());
868
.Setup(a => a.
GetChild
(0))
871
.Setup(a => a.
GetChild
(1))
874
.Setup(a => a.
GetChild
(2))
896
.Setup(a => a.
GetChild
(0))
899
.Setup(a => a.
GetChild
(1))
902
.Setup(a => a.
GetChild
(2))
1008
.Setup(a => a.
GetChild
(0))
1011
.Setup(a => a.
GetChild
(1))
1043
.Setup(a => a.
GetChild
(0))
1046
.Setup(a => a.
GetChild
(1))
1049
.Setup(a => a.
GetChild
(2))
1098
.Setup(a => a.
GetChild
(0))
1101
.Setup(a => a.
GetChild
(1))
1104
.Setup(a => a.
GetChild
(2))
1130
.Setup(a => a.
GetChild
(0))
1133
.Setup(a => a.
GetChild
(1))
1136
.Setup(a => a.
GetChild
(2))
1185
.Setup(a => a.
GetChild
(0))
1188
.Setup(a => a.
GetChild
(1))
1191
.Setup(a => a.
GetChild
(2))
1221
.Setup(a => a.
GetChild
(0))
1224
.Setup(a => a.
GetChild
(1))
1227
.Setup(a => a.
GetChild
(2))
1249
.Setup(a => a.
GetChild
(0))
1252
.Setup(a => a.
GetChild
(1))
1255
.Setup(a => a.
GetChild
(2))
1333
.Setup(a => a.
GetChild
(0))
1336
.Setup(a => a.
GetChild
(1))
1339
.Setup(a => a.
GetChild
(2))
1361
.Setup(a => a.
GetChild
(0))
1364
.Setup(a => a.
GetChild
(1))
1367
.Setup(a => a.
GetChild
(2))
1427
.Setup(a => a.
GetChild
(0))
1430
.Setup(a => a.
GetChild
(1))
1433
.Setup(a => a.
GetChild
(2))
1457
.Setup(a => a.
GetChild
(0))
1460
.Setup(a => a.
GetChild
(1))
1463
.Setup(a => a.
GetChild
(2))
1484
.Setup(a => a.
GetChild
(0))
1487
.Setup(a => a.
GetChild
(1))
1490
.Setup(a => a.
GetChild
(2))
1556
.Setup(a => a.
GetChild
(0))
1559
.Setup(a => a.
GetChild
(1))
1562
.Setup(a => a.
GetChild
(2))
1584
.Setup(a => a.
GetChild
(0))
1587
.Setup(a => a.
GetChild
(1))
1590
.Setup(a => a.
GetChild
(2))
1656
.Setup(a => a.
GetChild
(0))
1659
.Setup(a => a.
GetChild
(1))
1662
.Setup(a => a.
GetChild
(2))
1687
.Setup(a => a.
GetChild
(0))
1690
.Setup(a => a.
GetChild
(1))
1693
.Setup(a => a.
GetChild
(2))
1759
.Setup(a => a.
GetChild
(0))
1762
.Setup(a => a.
GetChild
(1))
1765
.Setup(a => a.
GetChild
(2))
1790
.Setup(a => a.
GetChild
(0))
1793
.Setup(a => a.
GetChild
(1))
1796
.Setup(a => a.
GetChild
(2))
1874
.Setup(a => a.
GetChild
(0))
1877
.Setup(a => a.
GetChild
(1))
1880
.Setup(a => a.
GetChild
(2))
1904
.Setup(a => a.
GetChild
(0))
1907
.Setup(a => a.
GetChild
(1))
1910
.Setup(a => a.
GetChild
(2))
1980
.Setup(a => a.
GetChild
(0))
1983
.Setup(a => a.
GetChild
(1))
1986
.Setup(a => a.
GetChild
(2))
2011
.Setup(a => a.
GetChild
(0))
2014
.Setup(a => a.
GetChild
(1))
2017
.Setup(a => a.
GetChild
(2))
2086
.Setup(a => a.
GetChild
(0))
2089
.Setup(a => a.
GetChild
(1))
2092
.Setup(a => a.
GetChild
(2))
2117
.Setup(a => a.
GetChild
(0))
2120
.Setup(a => a.
GetChild
(1))
2123
.Setup(a => a.
GetChild
(2))
2193
.Setup(a => a.
GetChild
(0))
2196
.Setup(a => a.
GetChild
(1))
2199
.Setup(a => a.
GetChild
(2))
2221
.Setup(a => a.
GetChild
(0))
2224
.Setup(a => a.
GetChild
(1))
2227
.Setup(a => a.
GetChild
(2))
2278
.Setup(a => a.
GetChild
(0))
2281
.Setup(a => a.
GetChild
(1))
2284
.Setup(a => a.
GetChild
(2))
2306
.Setup(a => a.
GetChild
(0))
2309
.Setup(a => a.
GetChild
(1))
2312
.Setup(a => a.
GetChild
(2))
2378
.Setup(a => a.
GetChild
(0))
2381
.Setup(a => a.
GetChild
(1))
2384
.Setup(a => a.
GetChild
(2))
2409
.Setup(a => a.
GetChild
(0))
2412
.Setup(a => a.
GetChild
(1))
2415
.Setup(a => a.
GetChild
(2))
2464
.Setup(a => a.
GetChild
(0))
2467
.Setup(a => a.
GetChild
(1))
2470
.Setup(a => a.
GetChild
(2))
2500
.Setup(a => a.
GetChild
(0))
2503
.Setup(a => a.
GetChild
(1))
2506
.Setup(a => a.
GetChild
(2))
2555
.Setup(a => a.
GetChild
(0))
2558
.Setup(a => a.
GetChild
(1))
2561
.Setup(a => a.
GetChild
(2))
2588
.Setup(a => a.
GetChild
(0))
2591
.Setup(a => a.
GetChild
(1))
2594
.Setup(a => a.
GetChild
(2))
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (3)
32
AccessibleObject item = checkedListBox.AccessibilityObject.
GetChild
(i);
143
AccessibleObject expected = accessibleObject.
GetChild
(0);
159
AccessibleObject expected = accessibleObject.
GetChild
(2);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (26)
48
Assert.Equal(testName, checkedListBox.AccessibilityObject.
GetChild
(0).Name);
58
Assert.Equal(AccessibleRole.CheckButton, checkedListBox.AccessibilityObject.
GetChild
(0).Role);
73
Assert.Equal(0, accessibleObject.
GetChild
(0).TestAccessor().Dynamic.CurrentIndex);
74
Assert.Equal(1, accessibleObject.
GetChild
(1).TestAccessor().Dynamic.CurrentIndex);
75
Assert.Equal(2, accessibleObject.
GetChild
(2).TestAccessor().Dynamic.CurrentIndex);
90
AccessibleObject itemAccessibleObject = checkedListBox.AccessibilityObject.
GetChild
(0);
102
Assert.NotNull(checkedListBox.AccessibilityObject.
GetChild
(0).RuntimeId);
119
AccessibleObject itemAccessibleObject = checkedListBox.AccessibilityObject.
GetChild
(itemIndex);
135
AccessibleObject itemAccessibleObject1 = checkedListBox.AccessibilityObject.
GetChild
(0);
136
AccessibleObject itemAccessibleObject2 = checkedListBox.AccessibilityObject.
GetChild
(1);
137
AccessibleObject itemAccessibleObject3 = checkedListBox.AccessibilityObject.
GetChild
(2);
154
AccessibleObject itemAccessibleObject1 = checkedListBox.AccessibilityObject.
GetChild
(0);
155
AccessibleObject itemAccessibleObject2 = checkedListBox.AccessibilityObject.
GetChild
(1);
156
AccessibleObject itemAccessibleObject3 = checkedListBox.AccessibilityObject.
GetChild
(2);
170
Assert.Equal(string.Empty, checkedListBox.AccessibilityObject.
GetChild
(0).DefaultAction);
189
Assert.Equal(expected, checkedListBox.AccessibilityObject.
GetChild
(0).DefaultAction);
202
Assert.Equal(expected, ((BSTR)checkedListBox.AccessibilityObject.
GetChild
(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
215
Assert.Equal(isChecked.ToString(), checkedListBox.AccessibilityObject.
GetChild
(0).Value);
230
checkedListBox.AccessibilityObject.
GetChild
(0).DoDefaultAction();
248
checkedListBox.AccessibilityObject.
GetChild
(0).DoDefaultAction();
264
Assert.Equal((ToggleState)toggleState, checkedListBox.AccessibilityObject.
GetChild
(0).ToggleState);
265
Assert.Equal(checkValue.ToString(), ((BSTR)checkedListBox.AccessibilityObject.
GetChild
(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
280
checkedListBox.AccessibilityObject.
GetChild
(0).Toggle();
298
checkedListBox.AccessibilityObject.
GetChild
(0).Toggle();
310
Assert.True((bool)checkedListBox.AccessibilityObject.
GetChild
(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_IsInvokePatternAvailablePropertyId));
322
AccessibleObject accessibleObject = checkedListBox.AccessibilityObject.
GetChild
(0);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
900
Assert.Null(accessibleObject.
GetChild
(index));
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (25)
113
Assert.Null(accessibleObject.
GetChild
(0)); // GetChild method should not throw an exception
125
Assert.NotNull(accessibleObject.
GetChild
(0)); // dataGridView a first empty row.
126
Assert.Null(accessibleObject.
GetChild
(1)); // GetChild method should not throw an exception
137
Assert.NotNull(accessibleObject.
GetChild
(0)); // dataGridView column headers
138
Assert.NotNull(accessibleObject.
GetChild
(1)); // dataGridView a first empty row
751
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(-1));
752
Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.
GetChild
(0));
753
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(1));
772
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(-1));
773
Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.
GetChild
(0));
774
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(1));
794
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(-1));
795
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(0));
796
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(1));
816
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(-1));
817
Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.
GetChild
(0));
818
Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.
GetChild
(1));
819
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(2));
839
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(-1));
840
Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.
GetChild
(0));
841
Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.
GetChild
(1));
842
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(2));
863
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(-1));
864
Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.
GetChild
(0));
865
Assert.Null(dataGridView.AccessibilityObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
379
Assert.Throws<InvalidOperationException>(() => accessibleObject.
GetChild
(-1));
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (1)
33
Assert.Equal(control.AccessibilityObject.
GetChild
(0), accessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (67)
251
Assert.Throws<InvalidOperationException>(() => accessibleObject.
GetChild
(0));
1873
Assert.Null(rowAccessibleObject.
GetChild
(0));
1874
Assert.Null(rowAccessibleObject.
GetChild
(1));
1875
Assert.Null(rowAccessibleObject.
GetChild
(2));
1892
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(0));
1893
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(1));
1894
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(2));
1895
Assert.Null(rowAccessibleObject.
GetChild
(3));
1912
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(0));
1913
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(1));
1914
Assert.Null(rowAccessibleObject.
GetChild
(2));
1931
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(0));
1932
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(1));
1933
Assert.Null(rowAccessibleObject.
GetChild
(2));
1950
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(0));
1951
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(1));
1952
Assert.Null(rowAccessibleObject.
GetChild
(2));
1970
Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.
GetChild
(0));
1971
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(1));
1972
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(2));
1973
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(3));
1974
Assert.Null(rowAccessibleObject.
GetChild
(4));
1992
Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.
GetChild
(0));
1993
Assert.Null(rowAccessibleObject.
GetChild
(1));
1994
Assert.Null(rowAccessibleObject.
GetChild
(2));
2012
Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.
GetChild
(0));
2013
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(1));
2014
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(2));
2015
Assert.Null(rowAccessibleObject.
GetChild
(3));
2033
Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.
GetChild
(0));
2034
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(1));
2035
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(2));
2036
Assert.Null(rowAccessibleObject.
GetChild
(3));
2054
Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.
GetChild
(0));
2055
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(1));
2056
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(2));
2057
Assert.Null(rowAccessibleObject.
GetChild
(3));
2077
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(0));
2078
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(1));
2079
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(2));
2080
Assert.Null(rowAccessibleObject.
GetChild
(3));
2100
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(0));
2101
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(1));
2102
Assert.Null(rowAccessibleObject.
GetChild
(2));
2122
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(0));
2123
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(1));
2124
Assert.Null(rowAccessibleObject.
GetChild
(2));
2144
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(0));
2145
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(1));
2146
Assert.Null(rowAccessibleObject.
GetChild
(2));
2167
Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.
GetChild
(0));
2168
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(1));
2169
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(2));
2170
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(3));
2171
Assert.Null(rowAccessibleObject.
GetChild
(4));
2192
Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.
GetChild
(0));
2193
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(1));
2194
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(2));
2195
Assert.Null(rowAccessibleObject.
GetChild
(3));
2216
Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.
GetChild
(0));
2217
Assert.Equal(accessibleObject1, rowAccessibleObject.
GetChild
(1));
2218
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(2));
2219
Assert.Null(rowAccessibleObject.
GetChild
(3));
2240
Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.
GetChild
(0));
2241
Assert.Equal(accessibleObject2, rowAccessibleObject.
GetChild
(1));
2242
Assert.Equal(accessibleObject3, rowAccessibleObject.
GetChild
(2));
2243
Assert.Null(rowAccessibleObject.
GetChild
(3));
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (3)
149
Assert.Null(accessibleObject.
GetChild
(-1));
150
Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.
GetChild
(0));
151
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (3)
155
Assert.Null(accessibleObject.
GetChild
(-1));
156
Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.
GetChild
(0));
157
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (3)
154
AccessibleObject expected = control.AccessibilityObject.
GetChild
(0);
185
AccessibleObject expected = control.AccessibilityObject.
GetChild
(0)?.
GetChild
(1);
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (66)
736
Assert.Null(topRowAccessibleObject.
GetChild
(0));
737
Assert.Null(topRowAccessibleObject.
GetChild
(1));
738
Assert.Null(topRowAccessibleObject.
GetChild
(2));
755
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(0));
756
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(1));
757
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(2));
758
Assert.Null(topRowAccessibleObject.
GetChild
(3));
775
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(0));
776
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(1));
777
Assert.Null(topRowAccessibleObject.
GetChild
(2));
794
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(0));
795
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(1));
796
Assert.Null(topRowAccessibleObject.
GetChild
(2));
813
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(0));
814
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(1));
815
Assert.Null(topRowAccessibleObject.
GetChild
(2));
833
Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.
GetChild
(0));
834
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(1));
835
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(2));
836
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(3));
837
Assert.Null(topRowAccessibleObject.
GetChild
(4));
855
Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.
GetChild
(0));
856
Assert.Null(topRowAccessibleObject.
GetChild
(1));
857
Assert.Null(topRowAccessibleObject.
GetChild
(2));
875
Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.
GetChild
(0));
876
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(1));
877
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(2));
878
Assert.Null(topRowAccessibleObject.
GetChild
(3));
896
Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.
GetChild
(0));
897
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(1));
898
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(2));
899
Assert.Null(topRowAccessibleObject.
GetChild
(3));
917
Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.
GetChild
(0));
918
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(1));
919
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(2));
920
Assert.Null(topRowAccessibleObject.
GetChild
(3));
940
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(0));
941
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(1));
942
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(2));
943
Assert.Null(topRowAccessibleObject.
GetChild
(3));
963
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(0));
964
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(1));
965
Assert.Null(topRowAccessibleObject.
GetChild
(2));
985
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(0));
986
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(1));
987
Assert.Null(topRowAccessibleObject.
GetChild
(2));
1007
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(0));
1008
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(1));
1009
Assert.Null(topRowAccessibleObject.
GetChild
(2));
1030
Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.
GetChild
(0));
1031
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(1));
1032
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(2));
1033
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(3));
1034
Assert.Null(topRowAccessibleObject.
GetChild
(4));
1055
Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.
GetChild
(0));
1056
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(1));
1057
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(2));
1058
Assert.Null(topRowAccessibleObject.
GetChild
(3));
1079
Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.
GetChild
(0));
1080
Assert.Equal(accessibleObject1, topRowAccessibleObject.
GetChild
(1));
1081
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(2));
1082
Assert.Null(topRowAccessibleObject.
GetChild
(3));
1103
Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.
GetChild
(0));
1104
Assert.Equal(accessibleObject2, topRowAccessibleObject.
GetChild
(1));
1105
Assert.Equal(accessibleObject3, topRowAccessibleObject.
GetChild
(2));
1106
Assert.Null(topRowAccessibleObject.
GetChild
(3));
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (4)
131
Assert.Null(accessibleObject.
GetChild
(-1));
132
Assert.Equal(item1.AccessibilityObject, accessibleObject.
GetChild
(0));
133
Assert.Equal(item2.AccessibilityObject, accessibleObject.
GetChild
(1));
134
Assert.Null(accessibleObject.
GetChild
(2));
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (2)
121
AccessibleObject actualAccessibilityObject = errorWindowAccessibilityObject.
GetChild
(0);
124
actualAccessibilityObject = errorWindowAccessibilityObject.
GetChild
(1);
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (35)
183
Assert.Null(accessibleObject.
GetChild
(-1));
184
Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.
GetChild
(0));
185
Assert.Equal(accessibleObject.FirstPageButtonAccessibleObject, accessibleObject.
GetChild
(1));
186
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(2));
187
Assert.Equal(accessibleObject.LastPageButtonAccessibleObject, accessibleObject.
GetChild
(3));
188
Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.
GetChild
(4));
189
Assert.Null(accessibleObject.
GetChild
(5));
199
Assert.Null(accessibleObject.
GetChild
(-1));
200
Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.
GetChild
(0));
201
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(1));
202
Assert.Equal(accessibleObject.LastPageButtonAccessibleObject, accessibleObject.
GetChild
(2));
203
Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.
GetChild
(3));
204
Assert.Null(accessibleObject.
GetChild
(4));
205
Assert.Null(accessibleObject.
GetChild
(5));
215
Assert.Null(accessibleObject.
GetChild
(-1));
216
Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.
GetChild
(0));
217
Assert.Equal(accessibleObject.FirstPageButtonAccessibleObject, accessibleObject.
GetChild
(1));
218
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(2));
219
Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.
GetChild
(3));
220
Assert.Null(accessibleObject.
GetChild
(4));
221
Assert.Null(accessibleObject.
GetChild
(5));
231
Assert.Null(accessibleObject.
GetChild
(-1));
232
Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.
GetChild
(0));
233
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(1));
234
Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.
GetChild
(2));
235
Assert.Null(accessibleObject.
GetChild
(3));
236
Assert.Null(accessibleObject.
GetChild
(4));
237
Assert.Null(accessibleObject.
GetChild
(5));
247
Assert.Null(accessibleObject.
GetChild
(-1));
248
Assert.Null(accessibleObject.
GetChild
(0));
249
Assert.Null(accessibleObject.
GetChild
(1));
250
Assert.Null(accessibleObject.
GetChild
(2));
251
Assert.Null(accessibleObject.
GetChild
(3));
252
Assert.Null(accessibleObject.
GetChild
(4));
253
Assert.Null(accessibleObject.
GetChild
(5));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\LinkLabel.LinkLabelAccessibleObjectTests.cs (2)
112
var actual = (LinkAccessibleObject)linkLabel.AccessibilityObject.
GetChild
(childIndex);
130
Assert.Null(linkLabel.AccessibilityObject.
GetChild
(childIndex));
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (8)
39
AccessibleObject itemAccessibleObject = accessibleObject.
GetChild
(i);
54
AccessibleObject itemAccessibleObject = accessibleObject.
GetChild
(0);
77
AccessibleObject itemAccessibleObject = accessibleObject.
GetChild
(0);
93
AccessibleObject itemAccessibleObject = accessibleObject.
GetChild
(0);
110
AccessibleObject itemAccessibleObject = accessibleObject.
GetChild
(0);
126
AccessibleObject itemAccessibleObject = accessibleObject.
GetChild
(0);
157
ListBox.ListBoxItemAccessibleObject accessibleObject = (ListBox.ListBoxItemAccessibleObject)listBoxAccessibleObject.
GetChild
(0);
172
var itemAccessibleObject = accessibleObject.
GetChild
(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which;
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (7)
22
var child = listBox.AccessibilityObject.
GetChild
(i);
211
ISelectionItemProvider.Interface provider = listBoxAccessibleObject.
GetChild
(0);
243
accessibilityObject.
GetChild
(i);
263
accessibleObject.GetSelected().Should().Be(accessibleObject.
GetChild
(0));
266
accessibleObject.GetSelected().Should().Be(accessibleObject.
GetChild
(1));
302
focusedObject.Should().BeEquivalentTo(accessibleObject.
GetChild
(1));
335
selectedObject.Should().BeEquivalentTo(accessibleObject.
GetChild
(expectedIndex.Value));
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (38)
199
Assert.Null(accessibleObject.
GetChild
(0)); // GetChild method should not throw an exception
552
Assert.Null(accessibleObject.
GetChild
(-1));
556
Assert.Equal(listView.DefaultGroup.AccessibilityObject, accessibleObject.
GetChild
(0));
557
Assert.Equal(listView.Groups[0].AccessibilityObject, accessibleObject.
GetChild
(1));
558
Assert.Null(accessibleObject.
GetChild
(2));
562
Assert.Equal(listViewItem1.AccessibilityObject, accessibleObject.
GetChild
(0));
563
Assert.Equal(listViewItem2.AccessibilityObject, accessibleObject.
GetChild
(1));
564
Assert.Equal(listViewItem3.AccessibilityObject, accessibleObject.
GetChild
(2));
565
Assert.Null(accessibleObject.
GetChild
(3));
619
Assert.Null(listView.AccessibilityObject.
GetChild
(-1));
620
Assert.Null(listView.AccessibilityObject.
GetChild
(0));
621
Assert.Null(listView.AccessibilityObject.
GetChild
(1));
1281
Assert.Null(listView.AccessibilityObject.
GetChild
(0));
1291
Assert.Null(listView.AccessibilityObject.
GetChild
(-1));
1301
Assert.Null(listView.AccessibilityObject.
GetChild
(10));
1325
Assert.Equal(expectedValues[0], listView.AccessibilityObject.
GetChild
(0));
1326
Assert.Equal(expectedValues[1], listView.AccessibilityObject.
GetChild
(1));
1327
Assert.Equal(expectedValues[2], listView.AccessibilityObject.
GetChild
(2));
1647
Assert.Equal(listViewGroupWithItems1.AccessibilityObject, accessibleObject.
GetChild
(0));
1648
Assert.Equal(listViewGroupWithItems2.AccessibilityObject, accessibleObject.
GetChild
(1));
1649
Assert.Null(accessibleObject.
GetChild
(2));
1650
Assert.Null(accessibleObject.
GetChild
(3));
1669
Assert.Equal(listView.Groups[1].AccessibilityObject, accessibleObject.
GetChild
(0));
1670
Assert.Equal(listView.Groups[2].AccessibilityObject, accessibleObject.
GetChild
(1));
1671
Assert.Null(accessibleObject.
GetChild
(2));
1672
Assert.Null(accessibleObject.
GetChild
(3));
1681
Assert.Equal(listView.Groups[0].AccessibilityObject, accessibleObject.
GetChild
(0));
1682
Assert.Equal(listView.Groups[1].AccessibilityObject, accessibleObject.
GetChild
(1));
1683
Assert.Equal(listView.Groups[2].AccessibilityObject, accessibleObject.
GetChild
(2));
1684
Assert.Equal(listView.Groups[3].AccessibilityObject, accessibleObject.
GetChild
(3));
1703
Assert.Equal(listView.Groups[1].AccessibilityObject, accessibleObject.
GetChild
(0));
1704
Assert.Equal(listView.Groups[2].AccessibilityObject, accessibleObject.
GetChild
(1));
1705
Assert.Null(accessibleObject.
GetChild
(2));
1706
Assert.Null(accessibleObject.
GetChild
(3));
1711
Assert.Equal(listView.DefaultGroup.AccessibilityObject, accessibleObject.
GetChild
(0));
1712
Assert.Null(accessibleObject.
GetChild
(1));
1713
Assert.Null(accessibleObject.
GetChild
(2));
1714
Assert.Null(accessibleObject.
GetChild
(3));
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (22)
611
Assert.Null(group1AccObj.
GetChild
(-1));
612
Assert.Null(group1AccObj.
GetChild
(1));
614
Assert.Equal(supportsGetChild ? items[0].AccessibilityObject : null, group1AccObj.
GetChild
(0));
616
Assert.Null(group2AccObj.
GetChild
(-1));
617
Assert.Null(group2AccObj.
GetChild
(2));
618
Assert.Equal(supportsGetChild ? items[2].AccessibilityObject : null, group2AccObj.
GetChild
(0));
619
Assert.Equal(supportsGetChild ? items[3].AccessibilityObject : null, group2AccObj.
GetChild
(1));
621
Assert.Null(group3AccObj.
GetChild
(-1));
622
Assert.Null(group3AccObj.
GetChild
(0));
624
Assert.Null(defaultGroupAccObj.
GetChild
(-1));
625
Assert.Null(defaultGroupAccObj.
GetChild
(1));
626
Assert.Equal(supportsGetChild ? items[1].AccessibilityObject : null, defaultGroupAccObj.
GetChild
(0));
1094
Assert.Equal(listView.Groups[0].Items[1].AccessibilityObject, accessibleObject.
GetChild
(0));
1095
Assert.Equal(listView.Groups[0].Items[2].AccessibilityObject, accessibleObject.
GetChild
(1));
1096
Assert.Null(accessibleObject.
GetChild
(2));
1118
Assert.Equal(listView.Groups[0].Items[0].AccessibilityObject, accessibleObject.
GetChild
(0));
1119
Assert.Equal(listView.Groups[0].Items[1].AccessibilityObject, accessibleObject.
GetChild
(1));
1120
Assert.Equal(listView.Groups[0].Items[2].AccessibilityObject, accessibleObject.
GetChild
(2));
1121
Assert.Equal(listView.Groups[0].Items[3].AccessibilityObject, accessibleObject.
GetChild
(3));
1122
Assert.Null(accessibleObject.
GetChild
(4));
1143
Assert.Equal(listView.Groups[0].Items[1].AccessibilityObject, accessibleObject.
GetChild
(0));
1144
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (34)
1054
Assert.Null(accessibleObject1.
GetChild
(-1));
1055
Assert.Null(accessibleObject2.
GetChild
(-1));
1058
Assert.Equal(listView.Items[0].SubItems[0].AccessibilityObject, accessibleObject1.
GetChild
(0));
1059
Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject1.
GetChild
(1));
1062
accessibleObject1.
GetChild
(2));
1064
Assert.Equal(listView.Items[1].SubItems[0].AccessibilityObject, accessibleObject2.
GetChild
(0));
1065
Assert.Equal(listView.Items[1].SubItems[1].AccessibilityObject, accessibleObject2.
GetChild
(1));
1068
accessibleObject2.
GetChild
(2));
1072
Assert.Null(accessibleObject1.
GetChild
(0));
1073
Assert.Null(accessibleObject1.
GetChild
(1));
1074
Assert.Null(accessibleObject1.
GetChild
(2));
1076
Assert.Null(accessibleObject2.
GetChild
(0));
1077
Assert.Null(accessibleObject2.
GetChild
(1));
1078
Assert.Null(accessibleObject2.
GetChild
(2));
1081
Assert.Null(accessibleObject1.
GetChild
(3));
1082
Assert.Null(accessibleObject2.
GetChild
(3));
1094
Assert.Null(accessibleObject1.
GetChild
(-1));
1095
Assert.Null(accessibleObject2.
GetChild
(-1));
1098
Assert.Equal(listView.Items[0].SubItems[0].AccessibilityObject, accessibleObject1.
GetChild
(0));
1099
Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject1.
GetChild
(1));
1100
Assert.Equal(listView.Items[0].SubItems[2].AccessibilityObject, accessibleObject1.
GetChild
(2));
1102
Assert.Equal(listView.Items[1].SubItems[0].AccessibilityObject, accessibleObject2.
GetChild
(0));
1103
Assert.Equal(listView.Items[1].SubItems[1].AccessibilityObject, accessibleObject2.
GetChild
(1));
1104
Assert.Equal(listView.Items[1].SubItems[2].AccessibilityObject, accessibleObject2.
GetChild
(2));
1108
Assert.Null(accessibleObject1.
GetChild
(0));
1109
Assert.Null(accessibleObject1.
GetChild
(1));
1110
Assert.Null(accessibleObject1.
GetChild
(2));
1112
Assert.Null(accessibleObject2.
GetChild
(0));
1113
Assert.Null(accessibleObject2.
GetChild
(1));
1114
Assert.Null(accessibleObject2.
GetChild
(2));
1117
Assert.Null(accessibleObject1.
GetChild
(3));
1118
Assert.Null(accessibleObject2.
GetChild
(3));
1756
Assert.Null(accessibleObject.
GetChild
(0));
1760
Assert.Throws<InvalidOperationException>(() => accessibleObject.
GetChild
(0));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (12)
60
Assert.Null(accessibleObject.
GetChild
(-1));
61
Assert.Null(accessibleObject.
GetChild
(outRangeIndex));
76
Assert.Equal(item.SubItems[0].AccessibilityObject, accessibleObject.
GetChild
(0));
77
Assert.Equal(item.SubItems[1].AccessibilityObject, accessibleObject.
GetChild
(1));
78
Assert.Equal(item.SubItems[2].AccessibilityObject, accessibleObject.
GetChild
(2));
79
Assert.Null(accessibleObject.
GetChild
(3));
196
AccessibleObject listItemAccessibleObject = listView1.AccessibilityObject.
GetChild
(1);
198
Assert.Equal("sub1", listItemAccessibleObject.
GetChild
(2).Name);
202
Assert.Equal("sub2", listItemAccessibleObject.
GetChild
(2).Name);
220
AccessibleObject listItemAccessibleObject = listView1.AccessibilityObject.
GetChild
(1);
222
Assert.Equal("sub1", listItemAccessibleObject.
GetChild
(1).Name);
226
Assert.Equal("sub2", listItemAccessibleObject.
GetChild
(1).Name);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (2)
67
Assert.Null(listViewItemAccessibleObject.
GetChild
(0));
89
Assert.IsType<ListViewItemImageAccessibleObject>(listViewItemAccessibleObject.
GetChild
(0));
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (3)
209
Assert.Null(panelAccessibleObject.
GetChild
(0));
220
Assert.Null(panelAccessibleObject.
GetChild
(0));
237
Assert.Equal(childPanel.AccessibilityObject, panelAccessibleObject.
GetChild
(0));
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (6)
110
Assert.Null(accessibleObject.
GetChild
(0)); // GetChild method should not throw an exception
115
Assert.True(accessibleObject.
GetChild
(0) is GridEntry.GridEntryAccessibleObject); // "Accessibility" category entry
116
Assert.True(accessibleObject.
GetChild
(1) is GridEntry.GridEntryAccessibleObject); // "AccessibleDescriptor" entry
117
Assert.True(accessibleObject.
GetChild
(2) is GridEntry.GridEntryAccessibleObject); // "AccessibleName" entry
118
Assert.True(accessibleObject.
GetChild
(3) is GridEntry.GridEntryAccessibleObject); // "AccessibleRole" entry
119
Assert.True(accessibleObject.
GetChild
(4) is GridEntry.GridEntryAccessibleObject); // "Appearance" category entry
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (21)
182
Assert.Null(accessibleObject.
GetChild
(-1));
183
Assert.Null(accessibleObject.
GetChild
(0));
184
Assert.Null(accessibleObject.
GetChild
(1));
185
Assert.Null(accessibleObject.
GetChild
(2));
186
Assert.Null(accessibleObject.
GetChild
(3));
187
Assert.Null(accessibleObject.
GetChild
(4));
201
Assert.Null(accessibleObject.
GetChild
(-1));
202
Assert.Null(accessibleObject.
GetChild
(0));
203
Assert.Null(accessibleObject.
GetChild
(1));
204
Assert.Null(accessibleObject.
GetChild
(2));
205
Assert.Null(accessibleObject.
GetChild
(3));
206
Assert.Null(accessibleObject.
GetChild
(4));
220
Assert.Null(accessibleObject.
GetChild
(-1));
221
Assert.Equal(pages[0].AccessibilityObject, accessibleObject.
GetChild
(0));
222
Assert.Equal(pages[0].TabAccessibilityObject, accessibleObject.
GetChild
(1));
223
Assert.Equal(pages[1].TabAccessibilityObject, accessibleObject.
GetChild
(2));
224
Assert.Null(accessibleObject.
GetChild
(3));
225
Assert.Null(accessibleObject.
GetChild
(4));
241
Assert.Equal(pages[0].AccessibilityObject, accessibleObject.
GetChild
(0));
245
Assert.Equal(pages[1].AccessibilityObject, accessibleObject.
GetChild
(0));
249
Assert.Equal(pages[2].AccessibilityObject, accessibleObject.
GetChild
(0));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (19)
206
Assert.Null(accessibleObject.
GetChild
(-1));
207
Assert.Equal(accessibleObject.FirstButtonAccessibleObject, accessibleObject.
GetChild
(0));
208
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(1));
209
Assert.Equal(accessibleObject.LastButtonAccessibleObject, accessibleObject.
GetChild
(2));
210
Assert.Null(accessibleObject.
GetChild
(3));
221
Assert.Null(accessibleObject.
GetChild
(-1));
222
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(0));
223
Assert.Equal(accessibleObject.LastButtonAccessibleObject, accessibleObject.
GetChild
(1));
224
Assert.Null(accessibleObject.
GetChild
(2));
235
Assert.Null(accessibleObject.
GetChild
(-1));
236
Assert.Equal(accessibleObject.FirstButtonAccessibleObject, accessibleObject.
GetChild
(0));
237
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(1));
238
Assert.Null(accessibleObject.
GetChild
(2));
239
Assert.Null(accessibleObject.
GetChild
(3));
250
Assert.Null(accessibleObject.
GetChild
(-1));
251
Assert.Null(accessibleObject.
GetChild
(0));
252
Assert.Null(accessibleObject.
GetChild
(1));
253
Assert.Null(accessibleObject.
GetChild
(2));
254
Assert.Null(accessibleObject.
GetChild
(3));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (3)
241
Assert.Null(accessibleObject.
GetChild
(-1));
242
Assert.Null(accessibleObject.
GetChild
(0));
243
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (3)
242
Assert.Null(accessibleObject.
GetChild
(-1));
243
Assert.Null(accessibleObject.
GetChild
(0));
244
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (3)
171
Assert.Null(accessibleObject.
GetChild
(-1));
172
Assert.Null(accessibleObject.
GetChild
(0));
173
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
106
Assert.Equal(expected, control.AccessibilityObject.
GetChild
(index));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (3)
20
Assert.Null(accessibleObject.
GetChild
(-1));
21
Assert.Null(accessibleObject.
GetChild
(0));
22
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (35)
171
Assert.Null(accessibleObject.
GetChild
(-1));
172
Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.
GetChild
(0));
173
Assert.Equal(accessibleObject.FirstPageButtonAccessibleObject, accessibleObject.
GetChild
(1));
174
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(2));
175
Assert.Equal(accessibleObject.LastPageButtonAccessibleObject, accessibleObject.
GetChild
(3));
176
Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.
GetChild
(4));
177
Assert.Null(accessibleObject.
GetChild
(5));
187
Assert.Null(accessibleObject.
GetChild
(-1));
188
Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.
GetChild
(0));
189
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(1));
190
Assert.Equal(accessibleObject.LastPageButtonAccessibleObject, accessibleObject.
GetChild
(2));
191
Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.
GetChild
(3));
192
Assert.Null(accessibleObject.
GetChild
(4));
193
Assert.Null(accessibleObject.
GetChild
(5));
203
Assert.Null(accessibleObject.
GetChild
(-1));
204
Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.
GetChild
(0));
205
Assert.Equal(accessibleObject.FirstPageButtonAccessibleObject, accessibleObject.
GetChild
(1));
206
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(2));
207
Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.
GetChild
(3));
208
Assert.Null(accessibleObject.
GetChild
(4));
209
Assert.Null(accessibleObject.
GetChild
(5));
219
Assert.Null(accessibleObject.
GetChild
(-1));
220
Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.
GetChild
(0));
221
Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.
GetChild
(1));
222
Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.
GetChild
(2));
223
Assert.Null(accessibleObject.
GetChild
(3));
224
Assert.Null(accessibleObject.
GetChild
(4));
225
Assert.Null(accessibleObject.
GetChild
(5));
235
Assert.Null(accessibleObject.
GetChild
(-1));
236
Assert.Null(accessibleObject.
GetChild
(0));
237
Assert.Null(accessibleObject.
GetChild
(1));
238
Assert.Null(accessibleObject.
GetChild
(2));
239
Assert.Null(accessibleObject.
GetChild
(3));
240
Assert.Null(accessibleObject.
GetChild
(4));
241
Assert.Null(accessibleObject.
GetChild
(5));
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibilityObjectTests.cs (10)
57
Assert.Null(accessibleObject.
GetChild
(0));
61
Assert.Equal(verticalScrollBarAO, accessibleObject.
GetChild
(0));
62
Assert.Null(accessibleObject.
GetChild
(1));
65
Assert.Equal(horizontalScrollBarAO, accessibleObject.
GetChild
(0));
66
Assert.Null(accessibleObject.
GetChild
(1));
69
Assert.Equal(verticalScrollBarAO, accessibleObject.
GetChild
(0));
70
Assert.Equal(horizontalScrollBarAO, accessibleObject.
GetChild
(1));
71
Assert.Null(accessibleObject.
GetChild
(2));
74
Assert.Null(accessibleObject.
GetChild
(0));
75
Assert.Null(accessibleObject.
GetChild
(1));
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (3)
33
AccessibleObject accessibleObject = toolStrip.AccessibilityObject.
GetChild
(1);
49
AccessibleObject accessibleObject = toolStrip.AccessibilityObject.
GetChild
(1);
81
AccessibleObject accessibleObject = toolStrip.AccessibilityObject.
GetChild
(1);
System.Windows.Forms.UI.IntegrationTests (23)
ListBoxAccesibleObjectTests.cs (1)
59
result.Should().Be(listBox.AccessibilityObject.
GetChild
(0));
ListBoxItemAccessibleObjestTests.cs (4)
18
var itemAccessibleObject = listBox.AccessibilityObject.
GetChild
(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which;
41
var itemAccessibleObjectDoubleClick = listBoxDoubleClick.AccessibilityObject.
GetChild
(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which;
45
var itemAccessibleObjectNullAction = listBoxNullAction.AccessibilityObject.
GetChild
(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which;
56
var itemAccessibleObject = listBox.AccessibilityObject.
GetChild
(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which;
ListViewTests.cs (18)
212
Assert.Null(accessibleObject.
GetChild
(-1));
213
Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject.
GetChild
(0));
214
Assert.Null(accessibleObject.
GetChild
(1));
232
Assert.Null(accessibleObject.
GetChild
(-1));
233
Assert.Null(accessibleObject.
GetChild
(0));
234
Assert.Null(accessibleObject.
GetChild
(1));
351
Assert.Null(accessibleObject.
GetChild
(-1));
352
Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject.
GetChild
(0));
353
Assert.Equal(listView.Items[0].SubItems[2].AccessibilityObject, accessibleObject.
GetChild
(1));
354
Assert.Equal(listView.Items[0].SubItems[3].AccessibilityObject, accessibleObject.
GetChild
(2));
355
Assert.Null(accessibleObject.
GetChild
(3));
371
Assert.Null(accessibleObject.
GetChild
(-1));
372
Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject.
GetChild
(0));
373
Assert.Equal(listView.Items[0].SubItems[2].AccessibilityObject, accessibleObject.
GetChild
(1));
374
Assert.Equal(listView.Items[0].SubItems[3].AccessibilityObject, accessibleObject.
GetChild
(2));
375
Assert.Equal(listView.Items[0].SubItems[4].AccessibilityObject, accessibleObject.
GetChild
(3));
376
Assert.Equal(listView.Items[0].SubItems[5].AccessibilityObject, accessibleObject.
GetChild
(4));
377
Assert.Null(accessibleObject.
GetChild
(5));