static void Main(string[] args) { var result = new Products(TestNumber).ScanLargestProduct(13); Console.WriteLine("The result is: {0}", result); Console.ReadLine(); }
private static void TestProducts(string stringOfInts, int consecutiveNums, int expected) { long result = new Products(stringOfInts).ScanLargestProduct(consecutiveNums); result.Should().Be(expected); }