public void CopyTo_CopiesAllItems_ToArray_ForThree() { var array = new int[3]; _threeMash.CopyTo(array, 0); TestHelper.AssertSequence(array, 1, 2, 3); }
public void CopyTo_CopiesAllItems_ToArray_ForOne() { var array = new int[1]; _oneMash.CopyTo(array, 0); TestHelper.AssertSequence(array, 1); }
public void CopyTo_CopiesAllItems_ToArray_ForTwo() { var array = new int[2]; _twoMash.CopyTo(array, 0); TestHelper.AssertSequence(array, 1, 2); }
public void CopyTo_DoesNothing_ForEmpty() { var array = new int[1]; _emptyMash.CopyTo(array, 0); Assert.AreEqual(0, array[0]); }