Beispiel #1
0
        public void TestBlankStringReverses()
        {
            // Arrange
            var testString = "";
            // Act
            var result = ReverseStringService.Reverse(testString);

            // Assert
            Assert.AreEqual("", result);
        }
Beispiel #2
0
        public void TestEmptyStringReverses()
        {
            // Arrange
            var testString = string.Empty;
            // Act
            var result = ReverseStringService.Reverse(testString);

            // Assert
            Assert.AreEqual(string.Empty, result);
        }
Beispiel #3
0
        public void TestSingleCharacterStringReverses()
        {
            // Arrange
            var testString = "k";
            // Act
            var result = ReverseStringService.Reverse(testString);

            // Assert
            Assert.AreEqual("k", result);
        }
Beispiel #4
0
        public void TestSentenceStringReverses()
        {
            // Arrange
            var testString = "This is a test string.";
            // Act
            var result = ReverseStringService.Reverse(testString);

            // Assert
            Assert.AreEqual(".gnirts tset a si sihT", result);
        }
Beispiel #5
0
        public void TestSingleWordLowerCaseStringReverses()
        {
            // Arrange
            var testString = "keyboard";
            // Act
            var result = ReverseStringService.Reverse(testString);

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