public void Test() { var collection = new TestCollection <int>(); collection.Add(1); collection.Add(2); collection.Add(3); int[] target = new int[5]; collection.CopyTo(target, 1); Assert.AreEqual(0, target[0]); Assert.AreEqual(1, target[1]); Assert.AreEqual(3, target[3]); Assert.AreEqual(0, target[4]); }