예제 #1
0
            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)));
            }
예제 #2
0
 public void CopyTo(int length, int index)
 {
     Sample.CopyTo(new int[length], index);
 }