Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
 public void Test6()
 {
     NthSeriesSumTests.RandomTests();
 }