public void ShouldTestCopyToIfAdsValuesToArrayStartingFromSecondElement() { VectorClass<int> list = new VectorClass<int>(); list.Add(1); list.Add(2); list.Add(3); int[] toAdd = new int[2]; list.CopyTo(toAdd, 1); Assert.AreEqual(3, toAdd[1]); }
public void ShouldTestCopyToIfAdsValuesToArray() { VectorClass<int> list = new VectorClass<int>(); list.Add(1); list.Add(2); int[] toAdd = new int[2]; list.CopyTo(toAdd, 0); Assert.AreEqual(1, toAdd[0]); }