Пример #1
0
        public void IsPalindromic_IsTrue(
            [Values(0, 1, 2, 5, 6, 7, 11, 33, 101, 414, 9009, 50105)] int number)
        {
            Palindrome p = new Palindrome(number);

            Assert.That(p.IsPalindromic, Is.True);
        }
Пример #2
0
        public void IsPalindromic_IsFalse(
            [Values(12, 21, 45, 112, 443, 10091, 101201)] int number)
        {
            Palindrome p = new Palindrome(number);

            Assert.That(p.IsPalindromic, Is.False);
        }