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