Example #1
0
        public void PlusOneTest_input_arr_9_9_output_arr_1_0_0()
        {
            bool arr_check = true;

            int[]  input    = new int[] { 9, 9 };
            int[]  expected = new int[] { 1, 0, 0 };
            MyTask target   = new MyTask();
            var    result   = target.PlusOne(input);

            for (int i = 0; i < expected.Length; i++)
            {
                if (expected[i] != result[i])
                {
                    arr_check = false;
                }
            }

            Assert.IsTrue(arr_check);
        }