예제 #1
0
        public void Find_4digit_Succeeds()
        {
            PalindromicProducts pProds = new PalindromicProducts(4);

            int[] expectedResult = { 9901, 9999, 99000099 };

            var results = pProds.Find();

            Assert.That(results, Is.EqualTo(expectedResult));
        }
예제 #2
0
        public void Find_3digit_Succeeds()
        {
            PalindromicProducts pProds = new PalindromicProducts(3);

            int[] expectedResult = { 913, 993, 906609 };

            var results = pProds.Find();

            Assert.That(results, Is.EqualTo(expectedResult));
        }