Exemple #1
0
 public static void tests(int[] list1, int[] results)
 {
     for (int i = 0; i < list1.Length; i++)
     {
         testing(IntTriangles.GiveTriang(list1[i]), results[i]);
     }
     return;
 }
Exemple #2
0
 //-----------------------
 public static void wTests()
 {
     for (int i = 0; i < 10; i++)
     {
         int n = rnd.Next(100, 8000);
         testing(IntTriangles.GiveTriang(n), GiveTriangSol(n));
     }
 }
Exemple #3
0
 public static void LinqTest()
 {
     Assert.AreEqual(4416, IntTriangles.LinqGiveTriang(10000));
 }