コード例 #1
0
        public void TestFindLargestPalindromeProductOfTwoDigitNumbers()
        {
            var result = Palindrome.FindPalindromeProductOfTwoFactors(99);

            Assert.AreEqual(9009, result.Product);
            Assert.AreEqual(99, result.Factors.ElementAt(0));
            Assert.AreEqual(91, result.Factors.ElementAt(1));
        }