示例#1
0
        public void Solve_Problem_For_Reasonable_Data_Set()
        {
            ProblemEight problem = new ProblemEight();
            int product = problem.FindLargestProductOfFiveConsecutiveDigits("1234567890");

            Assert.AreEqual(5*6*7*8*9, product);
        }
示例#2
0
        public void Solve_Problem()
        {
            ProblemEight problem = new ProblemEight();
            int          product = problem.FindLargestProductOfFiveConsecutiveDigits(testDigits);

            Console.WriteLine(product);
        }
示例#3
0
        public void Solve_Problem()
        {
            ProblemEight problem = new ProblemEight();
            int product = problem.FindLargestProductOfFiveConsecutiveDigits(testDigits);

            Console.WriteLine(product);
        }
示例#4
0
        public void Solve_Problem_For_Reasonable_Data_Set()
        {
            ProblemEight problem = new ProblemEight();
            int          product = problem.FindLargestProductOfFiveConsecutiveDigits("1234567890");

            Assert.AreEqual(5 * 6 * 7 * 8 * 9, product);
        }