public void DataGridViewRowAccessibleObject_GetChild_NoDataGridView_ReturnsNull(int index)
        {
            using var owner = new DataGridViewRow();
            var accessibleObject = new DataGridViewRowAccessibleObject(owner);

            Assert.Null(accessibleObject.GetChild(index));
        }
        public void DataGridViewRowAccessibleObject_GetChild_NoDataGridView_ThrowsNullReferenceException(int index)
        {
            var owner            = new DataGridViewRow();
            var accessibleObject = new DataGridViewRowAccessibleObject(owner);

            Assert.Throws <NullReferenceException>(() => accessibleObject.GetChild(index));
        }
        public void DataGridViewRowAccessibleObject_GetChild_InvalidIndex_ThrowsArgumentOutOfRangeException(int index)
        {
            var accessibleObject = new DataGridViewRowAccessibleObject();

            Assert.Throws <ArgumentOutOfRangeException>("index", () => accessibleObject.GetChild(index));
        }