Пример #1
0
        public void IsPalindromeTest()
        {
            var q = new ArrayQ();

            Assert.AreEqual(q.IsPalindrome(1), true);
            Assert.AreEqual(q.IsPalindrome(-1), false);
            Assert.AreEqual(q.IsPalindrome(12), false);
            Assert.AreEqual(q.IsPalindrome(121), true);
            Assert.AreEqual(q.IsPalindrome(-121), false);
            Assert.AreEqual(q.IsPalindrome(10), false);
            Assert.AreEqual(q.IsPalindrome(1234321), true);
            Assert.AreEqual(q.IsPalindrome(12344321), true);
        }