public void TestDoubleEachNumberSecond() { //Arrange int[] arr2 = new int[] { 5, 4, 3, 2, 1, 0 }; //Act Part2.DoubleEachNumber(arr2); //Assert CollectionAssert.AreEqual(new int[] { 10, 8, 6, 4, 2, 0 }, arr2); }
public void TestDoubleEachNumberFirst() { //Arrange int[] arr = new int[] { 0, 1, 2, 3, 4, 5 }; //Act Part2.DoubleEachNumber(arr); //Assert CollectionAssert.AreEqual(new int[] { 0, 2, 4, 6, 8, 10 }, arr); }