public void PlusOne2() { //Arrange int[] value = new int[] { 4, 3, 2, 1 }; int[] expencted = new int[] { 4, 3, 2, 2 }; //Act Solution066 s = new Solution066(); int[] actual = s.PlusOne(value); //Assert Assert.Equal(expencted, actual); }
public void PlusOne5() { //Arrange int[] value = new int[] { 9, 9, 9, 9 }; int[] expencted = new int[] { 1, 0, 0, 0, 0 }; //Act Solution066 s = new Solution066(); int[] actual = s.PlusOne(value); //Assert Assert.Equal(expencted, actual); }
public void TestMethod(int[] digits, int[] output) { Assert.Equal(output, Solution066.PlusOne(digits)); }