Пример #1
0
        public void TestReversesEmptyString()
        {
            // Arrange
            var input = string.Empty;
            // Act
            var result = ReverseEachWordService.Reverse(input);

            // Assert
            Assert.AreEqual(string.Empty, result);
        }
Пример #2
0
        public void TestReversesEachWordInASentence()
        {
            // Arrange
            var input = "This is a sentence.";
            // Act
            var result = ReverseEachWordService.Reverse(input);

            // Assert
            Assert.AreEqual("sihT si a .ecnetnes", result);
        }
Пример #3
0
        public void TestReversesSingleWordInASentence()
        {
            // Arrange
            var input = "This";
            // Act
            var result = ReverseEachWordService.Reverse(input);

            // Assert
            Assert.AreEqual("sihT", result);
        }