예제 #1
0
        public void EmptyString_Success()
        {
            var validPalindrome = new ValidPalindrome("");
            var result          = validPalindrome.IsPalindrome();

            Assert.True(result);
        }
예제 #2
0
        public void FirstCase_SecondApproach_Success_True()
        {
            var str             = "A man, a plan, a canal: Panama";
            var validPalindrome = new ValidPalindrome(str);
            var result          = validPalindrome.IsPalindrome2();

            Assert.True(result);
        }
예제 #3
0
        public void ThirdCase_SecondApproach_Success_False()
        {
            var str             = "0P";
            var validPalindrome = new ValidPalindrome(str);
            var result          = validPalindrome.IsPalindrome2();

            Assert.False(result);
        }
예제 #4
0
        public void SecondCase_Success_False()
        {
            var str             = "race a car";
            var validPalindrome = new ValidPalindrome(str);
            var result          = validPalindrome.IsPalindrome();

            Assert.False(result);
        }