Skip to content

Commit

Permalink
Add DataGridViewColumn tests (#2941)
Browse files Browse the repository at this point in the history
* Add DataGridViewColumn tests

* Remove Debug assert
  • Loading branch information
RussKie committed Mar 5, 2020
1 parent b51c801 commit 9ebc7e2
Show file tree
Hide file tree
Showing 3 changed files with 1,232 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,6 @@ private bool AutoResizeColumnInternal(int columnIndex, DataGridViewAutoSizeColum
autoSizeColumnCriteriaInternal == (DataGridViewAutoSizeColumnCriteriaInternal.Header | DataGridViewAutoSizeColumnCriteriaInternal.AllRows) ||
autoSizeColumnCriteriaInternal == (DataGridViewAutoSizeColumnCriteriaInternal.Header | DataGridViewAutoSizeColumnCriteriaInternal.DisplayedRows));
Debug.Assert(columnIndex >= 0 && columnIndex < Columns.Count);
Debug.Assert(autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.Header || ColumnHeadersVisible);

if (!IsHandleCreated)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ public override DataGridViewCellStyle InheritedStyle
get
{
DataGridViewCellStyle columnStyle = null;
Debug.Assert(Index > -1);
if (HasDefaultCellStyle)
{
columnStyle = DefaultCellStyle;
Expand Down

0 comments on commit 9ebc7e2

Please sign in to comment.