Пример #1
0
        public void ReverseEvenStringBySwapRecursionTest()
        {
            var input = "Karpov";

            var reverser = new StringReversion();

            var output = reverser.ReverseBySwapRecursion(input);

            output.ShouldBe("vopraK");
        }
Пример #2
0
        public void ReverseByStackTest()
        {
            var input = "Let's reverse a string";

            var reverser = new StringReversion();

            var output = reverser.ReverseByStack(input);

            output.ShouldBe("gnirts a esrever s'teL");
        }
Пример #3
0
        public void ReverseStringByRecursionArrayTest()
        {
            var input = "Let's reverse a string";

            var reverser = new StringReversion();

            var output = reverser.ReverseByArrayRecursion(input);

            output.ShouldBe("gnirts a esrever s'teL");
        }
Пример #4
0
        public void ReverseOddStringBySwapRecursionTest()
        {
            var input = "Fischer";

            var reverser = new StringReversion();

            var output = reverser.ReverseBySwapRecursion(input);

            output.ShouldBe("rehcsiF");
        }