Exemple #1
0
        public void Pali_CheckPalindromeCaseAndSpaceInsensitiveAlsoNumber_true()
        {
            Pali testPali = new Pali("1Euston saw I was not Sue1");

            Assert.Equal(true, testPali.PalindromeResult());
        }
Exemple #2
0
        public void Pali_CheckSentencePaliSpaceIrreleventCaseIrrelevent_true()
        {
            Pali testPali = new Pali("Sore was I ere I saw Eros");

            Assert.Equal(true, testPali.PalindromeResult());
        }
Exemple #3
0
        public void Pali_CheckSentencePaliSpaceIrrelevent_true()
        {
            Pali testPali = new Pali("sore was i ere i saw eros");

            Assert.Equal(true, testPali.PalindromeResult());
        }
Exemple #4
0
        public void Pali_CheckSingleWordPali_false()
        {
            Pali testPali = new Pali("word");

            Assert.Equal(false, testPali.PalindromeResult());
        }
Exemple #5
0
        public void Pali_CheckSingleWordPali_true()
        {
            Pali testPali = new Pali("wow");

            Assert.Equal(true, testPali.PalindromeResult());
        }
Exemple #6
0
        public void Pali_CheckIfFirstLetterIsLast_true()
        {
            Pali testPali = new Pali("wow");

            Assert.Equal(true, testPali.PalindromeResult());
        }