public void TestReversesEmptyString() { // Arrange var input = string.Empty; // Act var result = ReverseEachWordService.Reverse(input); // Assert Assert.AreEqual(string.Empty, result); }
public void TestReversesEachWordInASentence() { // Arrange var input = "This is a sentence."; // Act var result = ReverseEachWordService.Reverse(input); // Assert Assert.AreEqual("sihT si a .ecnetnes", result); }
public void TestReversesSingleWordInASentence() { // Arrange var input = "This"; // Act var result = ReverseEachWordService.Reverse(input); // Assert Assert.AreEqual("sihT", result); }