Esempio n. 1
0
        public void TestReversesEmptyString()
        {
            // Arrange
            var input = string.Empty;
            // Act
            var result = ReverseEachWordService.Reverse(input);

            // Assert
            Assert.AreEqual(string.Empty, result);
        }
Esempio n. 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);
        }
Esempio n. 3
0
        public void TestReversesSingleWordInASentence()
        {
            // Arrange
            var input = "This";
            // Act
            var result = ReverseEachWordService.Reverse(input);

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