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