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

            Assert.Throws <InvalidOperationException>(() => accessibleObject.DoDefaultAction());
        }
Example #2
0
        public void DataGridViewCellAccessibleObject_DoDefaultAction_NoDataGridView_ThrowsNullReferenceException()
        {
            var owner            = new SubDataGridViewCell();
            var accessibleObject = new DataGridViewCellAccessibleObject(owner);

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