static void Main(string[] args)
        {
            Console.Write("Enter sentence: ");
            var sentence = Console.ReadLine();

            var reverser = new Reverser();
            var reversedSentence = reverser.ReverseSentence(sentence);
            Console.WriteLine(reversedSentence);
        }
Example #2
0
        static void Main(string[] args)
        {
            Console.Write("Enter sentence: ");
            var sentence = Console.ReadLine();

            var reverser         = new Reverser();
            var reversedSentence = reverser.ReverseSentence(sentence);

            Console.WriteLine(reversedSentence);
        }
Example #3
0
        public void Should_be_able_to_reverse_sentence_with_one_word()
        {
            var result = _reverser.ReverseSentence("hello");

            Assert.AreEqual(result, "olleh");
        }