Example #1
0
        public void PaliChecker_Palindromecheck_Truebool()
        {
            string wordInput = "racecar";

            Palindromes testPali = new Palindromes(wordInput);
            bool        result   = testPali.PaliChecker();

            Assert.Equal(true, result);
        }
Example #2
0
        public void PaliChecker_PalindromecheckWithNumber_Truebool()
        {
            string wordInput = "10100101";

            Palindromes testPali = new Palindromes(wordInput);
            bool        result   = testPali.PaliChecker();

            Assert.Equal(true, result);
        }
Example #3
0
        public void PaliChecker_PalindromecheckError_Truebool2()
        {
            string wordInput = "fobot";

            Palindromes testPali = new Palindromes(wordInput);
            bool        result   = testPali.PaliChecker();

            Assert.Equal(false, result);
        }
Example #4
0
        public void PaliChecker_PalindromecheckWithSpace_Truebool()
        {
            string wordInput = "Hello olleH";

            Palindromes testPali = new Palindromes(wordInput);
            bool        result   = testPali.PaliChecker();

            Assert.Equal(true, result);
        }