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

            Assert.Equal(0, accessibleObject.GetChildCount());
        }
Exemplo n.º 2
0
        public void DataGridViewCellAccessibleObject_GetChildCount_NoDataGridView_ThrowsNullReferenceException()
        {
            var owner            = new SubDataGridViewCell();
            var accessibleObject = new DataGridViewCellAccessibleObject(owner);

            Assert.Throws <NullReferenceException>(() => accessibleObject.GetChildCount());
        }