public void TestCopyTo() { UIGridColumn column1 = new UIGridColumn("heading", null, null, null, false, 100, PropAlignment.left, null); UIGridColumn column2 = new UIGridColumn("heading", null, null, null, false, 100, PropAlignment.left, null); UIGrid uiGrid = new UIGrid(); uiGrid.Add(column1); uiGrid.Add(column2); UIGridColumn[] target = new UIGridColumn[2]; uiGrid.CopyTo(target, 0); Assert.AreEqual(column1, target[0]); Assert.AreEqual(column2, target[1]); }