Esempio n. 1
0
        public void DataGridViewImageCellAccessibleObject_ControlType_ReturnsExpected()
        {
            var accessibleObject = new DataGridViewImageCellAccessibleObject(null);

            UiaCore.UIA expected = UiaCore.UIA.ImageControlTypeId;
            Assert.Equal(expected, accessibleObject.GetPropertyValue(UiaCore.UIA.ControlTypePropertyId));
        }
Esempio n. 2
0
        public void DataGridViewImageCellAccessibleObject_Ctor_Default()
        {
            var accessibleObject = new DataGridViewImageCellAccessibleObject(null);

            Assert.Null(accessibleObject.Owner);
            Assert.Equal(AccessibleRole.Cell, accessibleObject.Role);
        }
Esempio n. 3
0
        public void DataGridViewImageCellAccessibleObject_Description_IsNull_IfOwnerIsNotImageCell()
        {
            var accessibleObject = new DataGridViewImageCellAccessibleObject(null);

            Assert.Null(accessibleObject.Description);
        }
Esempio n. 4
0
        public void DataGridViewImageCellAccessibleObject_IsPatternSupported_ReturnsExpected(int patternId)
        {
            var accessibleObject = new DataGridViewImageCellAccessibleObject(null);

            Assert.True(accessibleObject.IsPatternSupported((UiaCore.UIA)patternId));
        }
Esempio n. 5
0
        public void DataGridViewImageCellAccessibleObject_IsInvokePatternAvailable_ReturnsExpected()
        {
            var accessibleObject = new DataGridViewImageCellAccessibleObject(null);

            Assert.True((bool)accessibleObject.GetPropertyValue(UiaCore.UIA.IsInvokePatternAvailablePropertyId));
        }
Esempio n. 6
0
        public void DataGridViewImageCellAccessibleObject_IsIAccessibleExSupported_ReturnsExpected()
        {
            var accessibleObject = new DataGridViewImageCellAccessibleObject(null);

            Assert.True(accessibleObject.IsIAccessibleExSupported());
        }
Esempio n. 7
0
        public void DataGridViewImageCellAccessibleObject_GetChildCount_Default()
        {
            var accessibleObject = new DataGridViewImageCellAccessibleObject(null);

            Assert.Equal(0, accessibleObject.GetChildCount());
        }
Esempio n. 8
0
        public void DataGridViewImageCellAccessibleObject_DefaultAction_ReturnsExpected()
        {
            var accessibleObject = new DataGridViewImageCellAccessibleObject(null);

            Assert.Equal(string.Empty, accessibleObject.DefaultAction);
        }