public void DataGridViewRowAccessibleObject_Name_GetNoOwner_ThrowsInvalidOperationException(AccessibleObject accessibleObject)
 {
     Assert.Throws <InvalidOperationException>(() => accessibleObject.Name);
 }
 public void DataGridViewRowAccessibleObject_Navigate_NoOwner_ThrowsInvalidOperationException(AccessibleObject accessibleObject)
 {
     Assert.Throws <InvalidOperationException>(() => accessibleObject.Navigate(AccessibleNavigation.Right));
 }
 public void DataGridViewRowAccessibleObject_Bounds_Get_ReturnsExpected(AccessibleObject accessibleObject, Rectangle expected)
 {
     Assert.Equal(expected, accessibleObject.Bounds);
 }
 public void DataGridViewRowAccessibleObject_Parent_Get_ReturnsExpected(AccessibleObject accessibleObject, AccessibleObject expected)
 {
     Assert.Same(expected, accessibleObject.Parent);
 }
 public void DataGridViewRowAccessibleObject_GetSelected_NoOwner_ThrowsInvalidOperationException(AccessibleObject accessibleObject)
 {
     Assert.Throws <InvalidOperationException>(() => accessibleObject.GetSelected());
 }
 public void DataGridViewCellAccessibleObject_DefaultAction_NoOwner_ThrowsInvalidOperationException(AccessibleObject accessibleObject)
 {
     Assert.Throws <InvalidOperationException>(() => accessibleObject.DefaultAction);
 }
示例#7
0
        public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ThumbButton(AccessibleObject accessibleObject)
        {
            var firstChild = accessibleObject.FragmentNavigate(UnsafeNativeMethods.NavigateDirection.FirstChild);

            Assert.NotNull(firstChild);
            Assert.Equal(NativeConstants.UIA_ThumbControlTypeId, firstChild.GetPropertyValue(NativeConstants.UIA_ControlTypePropertyId));
        }
示例#8
0
            public AutoHideStripAccessibleObject(AutoHideStripBase strip, DockState state, AccessibleObject parent)
            {
                _strip = strip;
                _state = state;

                _parent = parent;
            }
示例#9
0
            internal AutoHideStripTabAccessibleObject(AutoHideStripBase strip, Tab tab, AccessibleObject parent)
            {
                _strip = strip;
                _tab   = tab;

                _parent = parent;
            }
        public void AccessibleObject_IRawElementProviderHwndOverrideGetOverrideProviderForHwnd_Invoke_ReturnsExpected()
        {
            var o = new AccessibleObject();

            AssertSuccess(Test_IRawElementProviderHwndOverrideGetOverrideProviderForHwnd(o));
        }
        public void AccessibleObject_IRawElementProviderSimpleGetPatternProvider_Invoke_ReturnsExpected(object patternId, object expected)
        {
            var o = new AccessibleObject();

            AssertSuccess(Test_IRawElementProviderSimpleGetPatternProvider(o, (UIA)patternId, (BOOL)expected));
        }
        public void AccessibleObject_ISelectionItemProviderSelect_Invoke_ReturnsExpected()
        {
            var o = new AccessibleObject();

            AssertSuccess(Test_ISelectionItemProviderSelect(o));
        }
        public void AccessibleObject_ISelectionProviderSelectionContainer_Get_ReturnsExpected()
        {
            var o = new AccessibleObject();

            AssertSuccess(Test_ISelectionItemProviderGetSelectionContainer(o, BOOL.FALSE));
        }
        public void AccessibleObject_ISelectionProviderGetSelection_Invoke_ReturnsExpected()
        {
            var o = new AccessibleObject();

            AssertSuccess(Test_ISelectionProviderGetSelection(o, BOOL.FALSE));
        }
示例#15
0
        private IntPtr m_providerHwnd; // hwnd of this RootSite control

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Create a RootSiteProvider based on it's window handle.
        /// </summary>
        /// <param name="hwnd">The RootSite window handle</param>
        public RootSiteProvider(IntPtr hwnd)
        {
            m_providerHwnd = hwnd;
            AccessibleObject ao = new AccessibleObject(hwnd);
            m_ivb = ao.getRootBox();
        }
示例#16
0
 public JavaMemberInfo(AccessibleObject member)
 {
     Member = member;
 }
	// Constructors
	public DomainItemAccessibleObject(string name, AccessibleObject parent) {}
 public void ComboBoxAccessibleObject_FragmentNavigate_FirstChild_NotNull(AccessibleObject accessibleObject)
 {
     UnsafeNativeMethods.IRawElementProviderFragment firstChild = accessibleObject.FragmentNavigate(UnsafeNativeMethods.NavigateDirection.FirstChild);
     Assert.NotNull(firstChild);
 }
示例#19
0
 private void rulesManager_MouseLeave(object sender, EventArgs e)
 {
     superTooltip.Hide(rulesManager);
     lastRuleUnderMouse = null;
 }
 public DomainItemAccessibleObject(string?name, AccessibleObject parent)
 {
     _name   = name;
     _parent = (DomainItemListAccessibleObject)parent.OrThrowIfNull();
 }
示例#21
0
 public SystemAccessible(AccessibleObject parent, IAccessible acc, int id)
 {
     this.acc    = acc;
     this.id     = id;
     this.parent = parent;
 }
示例#22
0
 public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ThumbButton(AccessibleObject accessibleObject)
 {
     UiaCore.IRawElementProviderFragment firstChild = accessibleObject.FragmentNavigate(UiaCore.NavigateDirection.FirstChild);
     Assert.NotNull(firstChild);
     Assert.Equal(NativeConstants.UIA_ThumbControlTypeId, firstChild.GetPropertyValue(NativeConstants.UIA_ControlTypePropertyId));
 }
 public void DataGridViewRowAccessibleObject_State_Get_ReturnsExpected(AccessibleObject accessibleObject, AccessibleStates expected)
 {
     Assert.Equal(expected, accessibleObject.State);
 }
 public void DataGridViewCellAccessibleObject_Parent_Get_ReturnsExpected(AccessibleObject accessibleObject, AccessibleObject expected)
 {
     Assert.Equal(expected, accessibleObject.Parent);
 }
 public void DataGridViewRowAccessibleObject_Navigate_Invoke_ReturnsExpected(AccessibleObject accessibleObject, AccessibleNavigation navigationDirection, AccessibleObject expected)
 {
     Assert.Equal(expected, accessibleObject.Navigate(navigationDirection));
 }
 public void DataGridViewCellAccessibleObject_Value_Get_ReturnsExpected(AccessibleObject accessibleObject, string expected)
 {
     Assert.Equal(expected, accessibleObject.Value);
 }
 public void DataGridViewRowAccessibleObject_Select_NoOwner_ThrowsInvalidOperationException(AccessibleObject accessibleObject)
 {
     Assert.Throws <InvalidOperationException>(() => accessibleObject.Select(AccessibleSelection.None));
 }
 public void DataGridViewCellAccessibleObject_GetChildCount_NoOwner_ThrowsInvalidOperationException(AccessibleObject accessibleObject)
 {
     Assert.Throws <InvalidOperationException>(() => accessibleObject.GetChildCount());
 }
 public void DataGridViewRowAccessibleObject_Name_Get_ReturnsExpected(AccessibleObject accessibleObject, string expected)
 {
     Assert.Equal(expected, accessibleObject.Name);
 }
 public void DataGridViewCellAccessibleObject_Bounds_NoOwner_ThrowsInvalidOperationException(AccessibleObject accessibleObject)
 {
     Assert.Throws <InvalidOperationException>(() => accessibleObject.Bounds);
 }
示例#31
0
            internal DockPaneStripTabAccessibleObject(DockPaneStripBase strip, Tab tab, AccessibleObject parent)
            {
                _strip = strip;
                _tab   = tab;

                _parent = parent;
            }
 public void DataGridViewCellAccessibleObject_DefaultAction_Get_ReturnsExpected(AccessibleObject accessibleObject, string expected)
 {
     Assert.Equal(expected, accessibleObject.DefaultAction);
 }
 public CalendarGridChildAccessibleObject(MonthCalendarAccessibleObject calendarAccessibleObject, int calendarIndex, CalendarChildType itemType,
                                          AccessibleObject parentAccessibleObject, int itemIndex) : base(calendarAccessibleObject, calendarIndex, itemType)
 {
     _parentAccessibleObject = parentAccessibleObject;
 }
示例#34
0
        public static Type GetMemberType(Type perceivedType, Type parentType, AccessibleObject member)
        {
            IGenericDefinition m = member.GetAnnotation<IGenericDefinition>(typeof (IGenericDefinition));

            if (m == null) 
                return perceivedType;

            return ToGenericInstanceType(perceivedType, parentType, m);
        }