Esempio n. 1
0
        public void TestFalse1()
        {
            //Arrange
            string         s = "one two one";
            TestPalindrome p = new TestPalindrome();
            //Act
            bool pal = p.TestPal(s);

            //Assert
            Assert.IsFalse(pal);
        }
Esempio n. 2
0
        public void TestTrue3()
        {
            //Arrange
            string         s = "1221";
            TestPalindrome p = new TestPalindrome();
            //Act
            bool pal = p.TestPal(s);

            //Assert
            Assert.IsTrue(pal);
        }
Esempio n. 3
0
        public void TestTrue4()
        {
            //Arrange
            string         s = "never odd, or even.";
            TestPalindrome p = new TestPalindrome();
            //Act
            bool pal = p.TestPal(s);

            //Assert
            Assert.IsTrue(pal);
        }
Esempio n. 4
0
        public void TestFalse2()
        {
            //Arrange
            string         s = "123abccba123";
            TestPalindrome p = new TestPalindrome();
            //Act
            bool pal = p.TestPal(s);

            //Assert
            Assert.IsFalse(pal);
        }