public void CopyFrom_ReturnsCopiedArray_WithIndexAndSourceArrayAndSourceIndexAndCount() { int[] expected = new int[] { 0, 2, 0, 0, 0 }; int[] actual = OriginalArray.CopyFrom(1, SourceArray, 1, 1); Assert.That(actual, Is.EqualTo(expected)); }
public void CopyFrom_ReturnsCopiedArray_WithRefIndexAndSourceArrayAndSourceIndex() { int index = 1; int expectedIndex = index + SourceArray.Length - 1; int[] expected = new int[] { 0, 2, 3, 0, 0 }; int[] actual = OriginalArray.CopyFrom(ref index, SourceArray, 1); Assert.That(index, Is.EqualTo(expectedIndex)); Assert.That(actual, Is.EqualTo(expected)); }