Exemplo n.º 1
0
        public void Rotate_1()
        {
            var input = new int[] { 1, 2, 3, 4, 5, 6, 7 };

            var solution = new _0189_RotateArray();

            solution.Rotate(input, 3);
            AssertHelper.AssertArray(new int[] { 5, 6, 7, 1, 2, 3, 4 }, input);
        }
Exemplo n.º 2
0
        public void Rotate_2()
        {
            var input = new int[] { -1, -100, 3, 99 };

            var solution = new _0189_RotateArray();

            solution.Rotate(input, 2);
            AssertHelper.AssertArray(new int[] { 3, 99, -1, -100 }, input);
        }