Beispiel #1
0
        public void findLargestPalindromeProductOfTwo3DigitNumbersFullProblemTest()
        {
            int expected = 906609;
            int input    = 999 * 999;
            int actual   = Problem4Class.findLargestPalindromeProductOfTwo3DigitNumbers(input);

            Assert.AreEqual(expected, actual, "isProductOfTwo3DigitNumbers - Results not correct for " + input);
        }
Beispiel #2
0
        public void isProductOfTwo3DigitNumbers10001Test()
        {
            Boolean expected = false;
            int     input    = 10001;
            Boolean actual   = Problem4Class.isProductOfTwo3DigitNumbers(input);

            Assert.AreEqual(expected, actual, "isProductOfTwo3DigitNumbers - Results not correct for " + input);
        }
Beispiel #3
0
        public void getFirstHalf658945Test()
        {
            int expected = 658;
            int input    = 658945;
            int actual   = Problem4Class.getFirstHalf(input);

            Assert.AreEqual(expected, actual, "getFirstHalf - Results not correct for " + input);
        }
Beispiel #4
0
        public void makePlaindrome752Test()
        {
            int expected = 752257;
            int input    = 752;
            int actual   = Problem4Class.makePlaindrome(input);

            Assert.AreEqual(expected, actual, "makePlaindrome - Results not correct for " + input);
        }