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