public static void RandomTests() { Random r = new Random(); for (int i = 0; i < 50; i++) { int x = r.Next(0, 100); Console.WriteLine("Random Nth with n: " + x); Assert.AreEqual(NthSeriesSumTests.solution(x), NthSeriesSum.SeriesSum(x)); } }
public void Test6() { NthSeriesSumTests.RandomTests(); }