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); }
public void Should_be_able_to_reverse_sentence_with_one_word() { var result = _reverser.ReverseSentence("hello"); Assert.AreEqual(result, "olleh"); }