System\Windows\Forms\DataGridViewHeaderCellTests.cs (8)
3128Assert.Equal(new Size(-1, -1), cell.GetSize(-1));
3137Assert.Equal(new Size(-1, -1), cell.GetSize(-1));
3177Assert.Equal(new Size(10, 25), cell.GetSize(-1));
3260Assert.Equal(new Size(10, 25), cell.GetSize(-1));
3271Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex));
3283Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex));
3324Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex));
3341Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex));