Пример #1
0
        public void EmptyString_SecondApproach_Success()
        {
            var validPalindrome = new ValidPalindrome("");
            var result          = validPalindrome.IsPalindrome2();

            Assert.True(result);
        }
Пример #2
0
        public void ThirdCase_SecondApproach_Success_False()
        {
            var str             = "0P";
            var validPalindrome = new ValidPalindrome(str);
            var result          = validPalindrome.IsPalindrome2();

            Assert.False(result);
        }
Пример #3
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);
        }