public void CopyTo(int length, int index) { var array = new int[length]; Sample.CopyTo(array, index); Assert.That(array[index], Is.EqualTo(42)); Assert.That(from i in Enumerable.Range(0, array.Length) where i != index select array[i], Is.EqualTo(Enumerable.Repeat(0, length - 1))); }
public void CopyTo(int length, int index) { Sample.CopyTo(new int[length], index); }