Esempio n. 1
0
 public void TestGetProduct()
 {
     int[,] grid = { { 1, 2, 3, 4, 5 }, { 6, 7, 8, 9, 10 } };
     // Get product of values starting in row 0, item 1 and multiplying by numbers 2 to right of it
     // In this case -> 2 * 3 * 4 = 24
     Assert.Equal(24, Problems11_14.GetProduct(0, 1, 0, 1, 3, grid));
     // Start at row 1, item 0 and multiply 2 to right
     // 6 * 7 * 8 = 336
     Assert.Equal(336, Problems11_14.GetProduct(1, 0, 0, 1, 3, grid));
 }
Esempio n. 2
0
 public void TestProjectEuler14_WithCaching()
 {
     Assert.Equal(837799, Problems11_14.ProjectEuler14_WithCaching());
 }
Esempio n. 3
0
 public void TestProjectEuler13()
 {
     Assert.Equal(5537376230, Problems11_14.ProjectEuler13());
 }
Esempio n. 4
0
 public void TestProjectEuler12()
 {
     Assert.Equal(76576500, Problems11_14.ProjectEuler12());
 }
Esempio n. 5
0
 public void TestProjectEuler11()
 {
     Assert.Equal(70600674, Problems11_14.ProjectEuler11());
 }