Ejemplo n.º 1
0
 public void NegativeNubmmTest()
 {
     Assert.AreEqual(-6, MaxProductOfTree.Solution(new int[] { -6, -1, -5, -3, -2, -4 }));
 }
Ejemplo n.º 2
0
 public void SmameNUmberTest()
 {
     Assert.AreEqual(6, MaxProductOfTree.Solution(Enumerable.Repeat(2, 100).ToArray()));
 }
Ejemplo n.º 3
0
 public void ExampleTest()
 {
     Assert.AreEqual(60, MaxProductOfTree.Solution(new int[] { -3, 1, 2, -2, 5, 6 }));
 }