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

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

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

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

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

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

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

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

            Assert.Equal(true, result);
        }