public void DataGridViewCellAccessibleObject_GetChild_NoDataGridView_ReturnsNull()
        {
            using var owner = new SubDataGridViewCell();
            var accessibleObject = new DataGridViewCellAccessibleObject(owner);

            Assert.Null(accessibleObject.GetChild(-1));
        }
Пример #2
0
        public void DataGridViewCellAccessibleObject_GetChild_NoDataGridView_ThrowsNullReferenceException()
        {
            var owner            = new SubDataGridViewCell();
            var accessibleObject = new DataGridViewCellAccessibleObject(owner);

            Assert.Throws <NullReferenceException>(() => accessibleObject.GetChild(-1));
        }