458 references to AccessibleNavigation
System.Windows.Forms (93)
System\Windows\Forms\Accessibility\AccessibleObject.cs (16)
417internal virtual bool GetSysChild(AccessibleNavigation navdir, out AccessibleObject? accessibleObject) 1750AccessibleObject? newObject = Navigate((AccessibleNavigation)navDir); 1762*pvarEndUpAt = AsChildIdVariant(child.Navigate((AccessibleNavigation)navDir)); 1767if (SysNavigate((AccessibleNavigation)navDir, varStart, out AccessibleObject? accessibleObject)) 2595public virtual AccessibleObject? Navigate(AccessibleNavigation navdir) 2602case AccessibleNavigation.FirstChild: 2604case AccessibleNavigation.LastChild: 2606case AccessibleNavigation.Previous: 2607case AccessibleNavigation.Up: 2608case AccessibleNavigation.Left: 2615case AccessibleNavigation.Next: 2616case AccessibleNavigation.Down: 2617case AccessibleNavigation.Right: 2780/// This is basically just a wrapper for <see cref="GetSysChild(AccessibleNavigation, out AccessibleObject?)"/> 2782/// <see cref="GetSysChild(AccessibleNavigation, out AccessibleObject?)"/>. 2787private bool SysNavigate(AccessibleNavigation direction, VARIANT childID, out AccessibleObject? accessibleObject)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (5)
120internal override bool GetSysChild(AccessibleNavigation navdir, out AccessibleObject? accessibleObject) 140case AccessibleNavigation.FirstChild: 148case AccessibleNavigation.LastChild: 156case AccessibleNavigation.Previous: 168case AccessibleNavigation.Next:
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (3)
192public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) => navigationDirection switch 194AccessibleNavigation.FirstChild => GetChild(0), 195AccessibleNavigation.LastChild => GetChild(GetChildCount() - 1),
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (3)
52public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) 58case AccessibleNavigation.FirstChild: 63case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (5)
153public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) 162case AccessibleNavigation.Down: 163case AccessibleNavigation.Next: 173case AccessibleNavigation.FirstChild: 177case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (9)
436public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) 450case AccessibleNavigation.Right: 455case AccessibleNavigation.Next: 458case AccessibleNavigation.Left: 463case AccessibleNavigation.Previous: 466case AccessibleNavigation.Up: 479case AccessibleNavigation.Down: 507AccessibleObject? previousRow = _owner.OwningRow.AccessibilityObject.Navigate(AccessibleNavigation.Previous); 546AccessibleObject? nextRow = _owner.OwningRow.AccessibilityObject.Navigate(AccessibleNavigation.Next);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (5)
138public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) 152AccessibleNavigation.Right => Owner.DataGridView.RightToLeft == RightToLeft.No ? NavigateForward() : NavigateBackward(), 153AccessibleNavigation.Next => NavigateForward(), 154AccessibleNavigation.Left => Owner.DataGridView.RightToLeft == RightToLeft.No ? NavigateBackward() : NavigateForward(), 155AccessibleNavigation.Previous => NavigateBackward(),
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (11)
326public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) 340case AccessibleNavigation.Down: 341case AccessibleNavigation.Next: 354case AccessibleNavigation.Up: 355case AccessibleNavigation.Previous: 371case AccessibleNavigation.FirstChild: 381case AccessibleNavigation.LastChild: 461NavigateDirection.NavigateDirection_NextSibling => Navigate(AccessibleNavigation.Next), 462NavigateDirection.NavigateDirection_PreviousSibling => Navigate(AccessibleNavigation.Previous), 463NavigateDirection.NavigateDirection_FirstChild => Navigate(AccessibleNavigation.FirstChild), 464NavigateDirection.NavigateDirection_LastChild => Navigate(AccessibleNavigation.LastChild),
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (3)
97public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) 101case AccessibleNavigation.FirstChild: 111case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (5)
134public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) 148case AccessibleNavigation.Next: 153case AccessibleNavigation.Down: 172case AccessibleNavigation.Up: 199case AccessibleNavigation.Previous:
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (5)
147public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) 162case AccessibleNavigation.Previous: 164case AccessibleNavigation.Left: 174case AccessibleNavigation.Next: 176case AccessibleNavigation.Right:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (11)
251public override AccessibleObject? Navigate(AccessibleNavigation navdir) 261case AccessibleNavigation.Down: 262case AccessibleNavigation.Right: 263case AccessibleNavigation.Next: 266case AccessibleNavigation.Up: 267case AccessibleNavigation.Left: 268case AccessibleNavigation.Previous: 271case AccessibleNavigation.FirstChild: 272case AccessibleNavigation.LastChild: 338return Navigate(AccessibleNavigation.Previous); 340return Navigate(AccessibleNavigation.Next);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (3)
451public override AccessibleObject? Navigate(AccessibleNavigation navdir) 458case AccessibleNavigation.FirstChild: 460case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (9)
229public override AccessibleObject? Navigate(AccessibleNavigation navigationDirection) 243case AccessibleNavigation.FirstChild: 246case AccessibleNavigation.LastChild: 249case AccessibleNavigation.Previous: 250case AccessibleNavigation.Left: 253case AccessibleNavigation.Next: 254case AccessibleNavigation.Right: 257case AccessibleNavigation.Up: 261case AccessibleNavigation.Down:
System.Windows.Forms.Tests (365)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (58)
410[EnumData<AccessibleNavigation>] 411[InvalidEnumData<AccessibleNavigation>] 412public void AccessibleObject_Navigate_InvokeDefault_ReturnsNull(AccessibleNavigation navdir) 441.Setup(a => a.Navigate(AccessibleNavigation.FirstChild)) 443Assert.Same(result, mockAccessibleObject.Object.Navigate(AccessibleNavigation.FirstChild)); 460.Setup(a => a.Navigate(AccessibleNavigation.LastChild)) 462Assert.Same(result, mockAccessibleObject.Object.Navigate(AccessibleNavigation.LastChild)); 472yield return new object[] { childCount, parentChildCount, AccessibleNavigation.Previous }; 473yield return new object[] { childCount, parentChildCount, AccessibleNavigation.Up }; 474yield return new object[] { childCount, parentChildCount, AccessibleNavigation.Left }; 475yield return new object[] { childCount, parentChildCount, AccessibleNavigation.Next }; 476yield return new object[] { childCount, parentChildCount, AccessibleNavigation.Down }; 477yield return new object[] { childCount, parentChildCount, AccessibleNavigation.Right }; 484public void AccessibleObject_Navigate_InvokeWithParent_ReturnsNull(int childCount, int parentChildCount, AccessibleNavigation navdir) 509[InlineData(AccessibleNavigation.Previous)] 510[InlineData(AccessibleNavigation.Up)] 511[InlineData(AccessibleNavigation.Left)] 512[InlineData(AccessibleNavigation.Next)] 513[InlineData(AccessibleNavigation.Down)] 514[InlineData(AccessibleNavigation.Right)] 515public void AccessibleObject_Navigate_InvokeWithChildrenWithoutParent_ReturnsNull(AccessibleNavigation navdir) 550AccessibleObject firstChild = form.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild); 554AccessibleObject next = firstChild.Navigate(AccessibleNavigation.Next); 557AccessibleObject previous = next.Navigate(AccessibleNavigation.Previous); 563[InlineData(AccessibleNavigation.FirstChild, true, false)] 564[InlineData(AccessibleNavigation.LastChild, true, false)] 565[InlineData(AccessibleNavigation.Next, false, false)] 566[InlineData(AccessibleNavigation.Previous, true, true)] 567[InlineData(AccessibleNavigation.Right, false, false)] 568[InlineData(AccessibleNavigation.Up, true, true)] 569public void AccessibleObject_Navigate_FromForm_OneChild(AccessibleNavigation direction, bool returnsObject, bool isSystemAccessible) 586[InlineData(AccessibleNavigation.FirstChild, false)] 587[InlineData(AccessibleNavigation.LastChild, false)] 588[InlineData(AccessibleNavigation.Next, false)] 589[InlineData(AccessibleNavigation.Previous, true)] 590[InlineData(AccessibleNavigation.Right, false)] 591[InlineData(AccessibleNavigation.Up, true)] 592public void AccessibleObject_Navigate_FromForm_NoChildren(AccessibleNavigation direction, bool returnsObject) 1151[InlineData((int)AccessibleNavigation.Right, 0)] 1152[InlineData((int)AccessibleNavigation.Right, unchecked((int)0x80020004))] 1153[InlineData((int)AccessibleNavigation.Right, "abc")] 1154[InlineData((int)AccessibleNavigation.Right, null)] 1159.Setup(a => a.Navigate((AccessibleNavigation)navDir)) 1164mockAccessibleObject.Verify(a => a.Navigate((AccessibleNavigation)navDir), Times.Once()); 1168[InlineData((int)AccessibleNavigation.Right, 2, 1, 0)] 1169[InlineData((int)AccessibleNavigation.Right, 3, 0, 1)] 1174.Setup(a => a.Navigate((AccessibleNavigation)navDir)) 1179.Setup(a => a.Navigate((AccessibleNavigation)navDir)) 1199mockAccessibleObjectChild1.Verify(a => a.Navigate((AccessibleNavigation)navDir), Times.Exactly(child1CallCount)); 1200mockAccessibleObjectChild2.Verify(a => a.Navigate((AccessibleNavigation)navDir), Times.Exactly(child2CallCount)); 1204[InlineData((int)AccessibleNavigation.Right, 2, 1, 0)] 1205[InlineData((int)AccessibleNavigation.Right, 3, 0, 1)] 1211.Setup(a => a.Navigate((AccessibleNavigation)navDir)) 1216.Setup(a => a.Navigate((AccessibleNavigation)navDir)) 1235mockAccessibleObjectChild1.Verify(a => a.Navigate((AccessibleNavigation)navDir), Times.Exactly(child1CallCount)); 1236mockAccessibleObjectChild2.Verify(a => a.Navigate((AccessibleNavigation)navDir), Times.Exactly(child2CallCount)); 1240[InlineData((int)AccessibleNavigation.Right, -1)] 1241[InlineData((int)AccessibleNavigation.Right, 4)]
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
997[EnumData<AccessibleNavigation>] 998public void AccessibleObject_Navigate_InvokeDefault_ReturnsNull(AccessibleNavigation navdir)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (12)
1006Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1007Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1026Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1027Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1047Assert.Null(dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1048Assert.Null(dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1067Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1068Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1087Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1088Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1108Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1109Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (4)
425yield return new object[] { new DataGridViewCellAccessibleObject(new SubDataGridViewCell()), AccessibleNavigation.Right, null }; 430yield return new object[] { new DataGridViewCellAccessibleObject(cell), AccessibleNavigation.Right, null }; 435public void DataGridViewCellAccessibleObject_Navigate_Invoke_ReturnsExpected(AccessibleObject accessibleObject, AccessibleNavigation navigationDirection, AccessibleObject expected) 444Assert.Throws<InvalidOperationException>(() => accessibleObject.Navigate(AccessibleNavigation.Right));
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (94)
352Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 353Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 354Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 356Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 357Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 358Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 374Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 375Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 377Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 378Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Previous)); 394Assert.Equal(accessibleObject3, accessibleObject1.Navigate(AccessibleNavigation.Next)); 395Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 397Assert.Equal(accessibleObject1, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 398Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 414Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 415Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Next)); 417Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 418Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 435Assert.Equal(accessibleObject1, accessibleObject0.Navigate(AccessibleNavigation.Next)); 436Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 437Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 438Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 440Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 441Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 442Assert.Equal(accessibleObject0, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 443Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.Previous)); 460Assert.Equal(accessibleObject2, accessibleObject0.Navigate(AccessibleNavigation.Next)); 461Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 462Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 464Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 465Assert.Equal(accessibleObject0, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 466Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.Previous)); 483Assert.Equal(accessibleObject1, accessibleObject0.Navigate(AccessibleNavigation.Next)); 484Assert.Equal(accessibleObject3, accessibleObject1.Navigate(AccessibleNavigation.Next)); 485Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 487Assert.Equal(accessibleObject1, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 488Assert.Equal(accessibleObject0, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 489Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.Previous)); 506Assert.Equal(accessibleObject1, accessibleObject0.Navigate(AccessibleNavigation.Next)); 507Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 508Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Next)); 510Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 511Assert.Equal(accessibleObject0, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 512Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.Previous)); 523Assert.Null(accessibleObject.Navigate(AccessibleNavigation.FirstChild)); 524Assert.Null(accessibleObject.Navigate(AccessibleNavigation.LastChild)); 536Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.FirstChild)); 537Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.LastChild)); 538Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.FirstChild)); 539Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.LastChild)); 786Assert.Equal(accessibleObject1, accessibleObject0.Navigate(AccessibleNavigation.Next)); 787Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 788Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 789Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 791Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 792Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 793Assert.Equal(accessibleObject0, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 794Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.Previous)); 814Assert.Equal(accessibleObject1, accessibleObject0.Navigate(AccessibleNavigation.Next)); 815Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 816Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Next)); 818Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 819Assert.Equal(accessibleObject0, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 820Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.Previous)); 840Assert.Equal(accessibleObject1, accessibleObject0.Navigate(AccessibleNavigation.Next)); 841Assert.Equal(accessibleObject3, accessibleObject1.Navigate(AccessibleNavigation.Next)); 842Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 844Assert.Equal(accessibleObject1, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 845Assert.Equal(accessibleObject0, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 846Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.Previous)); 866Assert.Equal(accessibleObject2, accessibleObject0.Navigate(AccessibleNavigation.Next)); 867Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 868Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 870Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 871Assert.Equal(accessibleObject0, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 872Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.Previous)); 891Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 892Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 893Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 895Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 896Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 897Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 916Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 917Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Next)); 919Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 920Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 939Assert.Equal(accessibleObject3, accessibleObject1.Navigate(AccessibleNavigation.Next)); 940Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 942Assert.Equal(accessibleObject1, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 943Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 962Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 963Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 965Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 966Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Previous));
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (151)
330yield return new object[] { new DataGridViewRowAccessibleObject(new DataGridViewRow()), AccessibleNavigation.Up - 1, null }; 331yield return new object[] { new DataGridViewRowAccessibleObject(new DataGridViewRow()), AccessibleNavigation.LastChild + 1, null }; 332yield return new object[] { new DataGridViewRowAccessibleObject(new DataGridViewRow()), AccessibleNavigation.Left, null }; 333yield return new object[] { new DataGridViewRowAccessibleObject(new DataGridViewRow()), AccessibleNavigation.Right, null }; 338public void DataGridViewRowAccessibleObject_Navigate_Invoke_ReturnsExpected(AccessibleObject accessibleObject, AccessibleNavigation navigationDirection, AccessibleObject expected) 347Assert.Throws<InvalidOperationException>(() => accessibleObject.Navigate(AccessibleNavigation.Right)); 351[InlineData(AccessibleNavigation.Down)] 352[InlineData(AccessibleNavigation.FirstChild)] 353[InlineData(AccessibleNavigation.LastChild)] 354[InlineData(AccessibleNavigation.Next)] 355[InlineData(AccessibleNavigation.Previous)] 356[InlineData(AccessibleNavigation.Up)] 357public void DataGridViewRowAccessibleObject_Navigate_NoDataGridView_ThrowsNullReferenceException(AccessibleNavigation navigationDirection) 815Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.Next)); 816Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 817Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 818Assert.Equal(accessibleObject4, accessibleObject3.Navigate(AccessibleNavigation.Next)); 819Assert.Null(accessibleObject4.Navigate(AccessibleNavigation.Next)); 821Assert.Equal(accessibleObject3, accessibleObject4.Navigate(AccessibleNavigation.Previous)); 822Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 823Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 824Assert.Equal(topRowAccessibleObject, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 825Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.Previous)); 844Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.Next)); 845Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 846Assert.Equal(accessibleObject4, accessibleObject3.Navigate(AccessibleNavigation.Next)); 847Assert.Null(accessibleObject4.Navigate(AccessibleNavigation.Next)); 849Assert.Equal(accessibleObject3, accessibleObject4.Navigate(AccessibleNavigation.Previous)); 850Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 851Assert.Equal(topRowAccessibleObject, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 852Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.Previous)); 871Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.Next)); 872Assert.Equal(accessibleObject3, accessibleObject1.Navigate(AccessibleNavigation.Next)); 873Assert.Equal(accessibleObject4, accessibleObject3.Navigate(AccessibleNavigation.Next)); 874Assert.Null(accessibleObject4.Navigate(AccessibleNavigation.Next)); 876Assert.Equal(accessibleObject3, accessibleObject4.Navigate(AccessibleNavigation.Previous)); 877Assert.Equal(accessibleObject1, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 878Assert.Equal(topRowAccessibleObject, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 879Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.Previous)); 898Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.Next)); 899Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 900Assert.Equal(accessibleObject4, accessibleObject2.Navigate(AccessibleNavigation.Next)); 901Assert.Null(accessibleObject4.Navigate(AccessibleNavigation.Next)); 903Assert.Equal(accessibleObject2, accessibleObject4.Navigate(AccessibleNavigation.Previous)); 904Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 905Assert.Equal(topRowAccessibleObject, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 906Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.Previous)); 923Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 924Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 925Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 927Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 928Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 929Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 946Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 947Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 949Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 950Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Previous)); 967Assert.Equal(accessibleObject3, accessibleObject1.Navigate(AccessibleNavigation.Next)); 968Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 970Assert.Equal(accessibleObject1, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 971Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 988Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 989Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Next)); 991Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 992Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 1010Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 1011Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 1012Assert.Equal(accessibleObject4, accessibleObject3.Navigate(AccessibleNavigation.Next)); 1013Assert.Null(accessibleObject4.Navigate(AccessibleNavigation.Next)); 1015Assert.Equal(accessibleObject3, accessibleObject4.Navigate(AccessibleNavigation.Previous)); 1016Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 1017Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 1018Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 1037Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 1038Assert.Equal(accessibleObject4, accessibleObject3.Navigate(AccessibleNavigation.Next)); 1039Assert.Null(accessibleObject4.Navigate(AccessibleNavigation.Next)); 1041Assert.Equal(accessibleObject3, accessibleObject4.Navigate(AccessibleNavigation.Previous)); 1042Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 1043Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Previous)); 1062Assert.Equal(accessibleObject3, accessibleObject1.Navigate(AccessibleNavigation.Next)); 1063Assert.Equal(accessibleObject4, accessibleObject3.Navigate(AccessibleNavigation.Next)); 1064Assert.Null(accessibleObject4.Navigate(AccessibleNavigation.Next)); 1066Assert.Equal(accessibleObject3, accessibleObject4.Navigate(AccessibleNavigation.Previous)); 1067Assert.Equal(accessibleObject1, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 1068Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 1087Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 1088Assert.Equal(accessibleObject4, accessibleObject2.Navigate(AccessibleNavigation.Next)); 1089Assert.Null(accessibleObject4.Navigate(AccessibleNavigation.Next)); 1091Assert.Equal(accessibleObject2, accessibleObject4.Navigate(AccessibleNavigation.Previous)); 1092Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 1093Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.Previous)); 1111Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.Next)); 1112Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 1113Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 1114Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 1116Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 1117Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 1118Assert.Equal(topRowAccessibleObject, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 1119Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.Previous)); 1137Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.Next)); 1138Assert.Equal(accessibleObject3, accessibleObject2.Navigate(AccessibleNavigation.Next)); 1139Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 1141Assert.Equal(accessibleObject2, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 1142Assert.Equal(topRowAccessibleObject, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 1143Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.Previous)); 1161Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.Next)); 1162Assert.Equal(accessibleObject3, accessibleObject1.Navigate(AccessibleNavigation.Next)); 1163Assert.Null(accessibleObject3.Navigate(AccessibleNavigation.Next)); 1165Assert.Equal(accessibleObject1, accessibleObject3.Navigate(AccessibleNavigation.Previous)); 1166Assert.Equal(topRowAccessibleObject, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 1167Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.Previous)); 1185Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.Next)); 1186Assert.Equal(accessibleObject2, accessibleObject1.Navigate(AccessibleNavigation.Next)); 1187Assert.Null(accessibleObject2.Navigate(AccessibleNavigation.Next)); 1189Assert.Equal(accessibleObject1, accessibleObject2.Navigate(AccessibleNavigation.Previous)); 1190Assert.Equal(topRowAccessibleObject, accessibleObject1.Navigate(AccessibleNavigation.Previous)); 1191Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.Previous)); 1544Assert.Null(rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1545Assert.Null(rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1562Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1563Assert.Equal(accessibleObject3, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1580Assert.Equal(accessibleObject1, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1581Assert.Equal(accessibleObject3, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1598Assert.Equal(accessibleObject1, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1599Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1616Assert.Null(rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1617Assert.Null(rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1634Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1635Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1652Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1653Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1670Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1671Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1689Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1690Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1709Assert.Equal(accessibleObject1, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1710Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1730Assert.Equal(accessibleObject1, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1731Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1751Assert.Equal(accessibleObject1, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1752Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1772Assert.Equal(accessibleObject1, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1773Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1792Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1793Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1813Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1814Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1834Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1835Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1855Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 1856Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (4)
166Assert.Null(accessibleObject.Navigate(AccessibleNavigation.FirstChild)); 167Assert.Null(accessibleObject.Navigate(AccessibleNavigation.LastChild)); 187Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.Navigate(AccessibleNavigation.FirstChild)); 188Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (4)
173Assert.Null(accessibleObject.Navigate(AccessibleNavigation.FirstChild)); 174Assert.Null(accessibleObject.Navigate(AccessibleNavigation.LastChild)); 195Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.Navigate(AccessibleNavigation.FirstChild)); 196Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (34)
407Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 408Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 425Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 426Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 443Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 444Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 461Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 462Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 479Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 480Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 497Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 498Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 515Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 516Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 533Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 534Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 552Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 553Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 572Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 573Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 593Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 594Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 614Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 615Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 635Assert.Equal(accessibleObject1, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 636Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 655Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 656Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 676Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 677Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 697Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 698Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 718Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.FirstChild)); 719Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (2)
252Assert.Equal(buttonFirst.AccessibilityObject, panel.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 253Assert.Equal(buttonLast.AccessibilityObject, panel.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));