Exemplo n.º 1
0
        public void censorPalindromesTest_NoPalindromes()
        {
            Censor censor = new Censor();

            string inputText = "she went to vote in the election to fulfil her duty";

            string expectedOutput = "she went to vote in the election to fulfil her duty";

            string actualOutput = censor.censorPalindromes(inputText);

            Assert.AreEqual(expectedOutput, actualOutput);
        }
Exemplo n.º 2
0
        public void censorPalindromesTest_EmptyString()
        {
            Censor censor = new Censor();

            string inputText = " ";

            string expectedOutput = " ";

            string actualOutput = censor.censorPalindromes(inputText);

            Assert.AreEqual(expectedOutput, actualOutput);
        }