Beispiel #1
0
        public void FourthCase_SolTwo_Success()
        {
            var arr    = new int[] { 9 };
            var so     = new PlusOne(arr);
            var result = so.SolutionTwo();

            Assert.True(CheckArrayEquality(new [] { 1, 0 }, result));
        }
Beispiel #2
0
        public void FifthCase_SolTweo_Success()
        {
            var arr    = new int[] { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
            var so     = new PlusOne(arr);
            var result = so.SolutionTwo();

            Assert.True(CheckArrayEquality(new [] { 9, 8, 7, 6, 5, 4, 3, 2, 1, 1 }, result));
        }
Beispiel #3
0
        public void ThirdCase_SolTwo_Success()
        {
            var arr    = new int[] { 4, 3, 2, 1 };
            var so     = new PlusOne(arr);
            var result = so.SolutionTwo();

            Assert.True(CheckArrayEquality(new [] { 4, 3, 2, 2 }, result));
        }