Esempio n. 1
0
        public void TestMethod2()
        {
            //Arrange
            string str      = "Neuquen";
            bool   expected = true;
            //Act
            bool actual = Challenge125.IsPalindrome(str);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void TestMethod3()
        {
            //Arrange
            string str      = "Not a palindrome";
            bool   expected = false;
            //Act
            bool actual = Challenge125.IsPalindrome(str);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Esempio n. 3
0
        public void TestMethod1()
        {
            //Arrange
            string str      = "A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal-Panama!";
            bool   expected = true;
            //Act
            bool actual = Challenge125.IsPalindrome(str);

            //Assert
            Assert.AreEqual(expected, actual);
        }