public void RearrangeOddWithPrecedingEvenIndex_InputArrayIsSorted_ReturnsInput()
        {
            //Arrange
            ArrayRotation arrayRotation = new ArrayRotation();

            int[] inputArray = new int[5] {
                1, 2, 3, 4, 5
            };

            //Act
            var output = arrayRotation.RearrangeOddWithPrecedingEvenIndex(inputArray);

            //Assert
            Assert.IsTrue(output.Equals(inputArray));
        }
        public void RearrangeOddWithPrecedingEvenIndex_InputArrayIsUnsorted_ReturnsEvenIndexLessThanOddIndex()
        {
            //Arrange
            ArrayRotation arrayRotation = new ArrayRotation();

            int[] inputArray = new int[5] {
                5, 4, 3, 2, 1
            };
            int[] expectedOutput = new int[5] {
                4, 5, 2, 3, 1
            };

            //Act
            var output = arrayRotation.RearrangeOddWithPrecedingEvenIndex(inputArray);

            //Assert
            Assert.IsTrue(output.IsArrayEqual(expectedOutput));
        }