10 references to GetCellPosition
System.Windows.Forms.Tests (10)
System\Windows\Forms\TableLayoutPanelTests.cs (10)
650
Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), control.
GetCellPosition
(child));
657
Assert.Throws<ArgumentNullException>("control", () => control.
GetCellPosition
(null));
666
Assert.Throws<ArgumentOutOfRangeException>("column", () => control.
GetCellPosition
(child));
675
Assert.Throws<ArgumentOutOfRangeException>("row", () => control.
GetCellPosition
(child));
1565
Assert.Equal(value, control.
GetCellPosition
(child));
1573
Assert.Equal(value, control.
GetCellPosition
(child));
1617
Assert.Equal(value, control.
GetCellPosition
(child));
1627
Assert.Equal(value, control.
GetCellPosition
(child));
1647
Assert.Equal(new TableLayoutPanelCellPosition(1, 1), control.
GetCellPosition
(child));
1650
Assert.Equal(new TableLayoutPanelCellPosition(2, 2), control.
GetCellPosition
(child));