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); }
public void Solve_Problem() { ProblemEight problem = new ProblemEight(); int product = problem.FindLargestProductOfFiveConsecutiveDigits(testDigits); Console.WriteLine(product); }
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); }