public void MethodGetContentBounds () { DataGridViewCell c = new BaseCell (); Assert.AreEqual (Rectangle.Empty, c.GetContentBounds (c.RowIndex), "A1"); DataGridView dgv = new DataGridView (); dgv.Columns.Add ("hi", "there"); DataGridViewRow row = new DataGridViewRow (); row.Cells.Add (c); dgv.Rows.Add (row); Assert.AreEqual (Rectangle.Empty, dgv.Rows[0].Cells[0].GetContentBounds (dgv.Rows[0].Cells[0].RowIndex), "A2"); }