public void TestArrayShift_test2() { int[] testArr = new int[] { 4, 8, 15, 23, 42 }; int value = 16; Program p = new Program(); int[] actual = p.BuildNewArray2(testArr, value); int[] expected = new int[] { 4, 8, 15, 16, 23, 42 }; Assert.Equal(expected.ToString(), actual.ToString()); }
public void TestArrayShift_test1() { int[] testArr = new int[] { 2, 4, 6, 8 }; int value = 5; Program p = new Program(); int[] actual = p.BuildNewArray2(testArr, value); int[] expected = new int[] { 2, 4, 5, 6, 8 }; Assert.Equal(expected.ToString(), actual.ToString()); }