Exemplo n.º 1
0
        public void Shift_OddSourceLength_DoRotation(int stepsAmount, int[] expected)
        {
            var source  = new int[] { 1, 2, 3, 4, 5 };
            var rotator = new CyclicRotation();

            var result = rotator.Shift(source, stepsAmount);

            result.Should().BeEquivalentTo(expected);
        }