コード例 #1
0
        public void IsWord_APalindrome_True()
        {
            PalindromeTracker tracker = new PalindromeTracker();

            Assert.AreEqual(true, tracker.IsWordAPalindrome("racecar"));
        }
コード例 #2
0
        public void IsWord_WithDifferentCasesPalindrome_True()
        {
            PalindromeTracker tracker = new PalindromeTracker();

            Assert.AreEqual(true, tracker.IsWordAPalindrome("rAceCar"));
        }
コード例 #3
0
        public void IsWord_NotAPalindrome_True()
        {
            PalindromeTracker tracker = new PalindromeTracker();

            Assert.AreEqual(true, tracker.IsWordAPalindrome("horse"));
        }
コード例 #4
0
        public void IsWord_BlankInput_False()
        {
            PalindromeTracker tracker = new PalindromeTracker();

            Assert.AreEqual(false, tracker.IsWordAPalindrome(""));
        }
コード例 #5
0
        public void IsNumber_APalindrome_True()
        {
            PalindromeTracker tracker = new PalindromeTracker();

            Assert.AreEqual(true, tracker.IsWordAPalindrome("101"));
        }