public static void test1() { Console.WriteLine("Basic Tests"); double[] a = new double[] { 14, 30, 5, 7, 9, 11, 15 }; testing(LookingForBenefactor.NewAvg(a, 100), 709); a = new double[] { 14.0, 30.0, 5.0, 7.0, 9.0, 11.0, 16.0 }; testing(LookingForBenefactor.NewAvg(a, 90), 628); }
public static void ErrorTests() { Console.WriteLine("Error Tests"); double[] a = new double[] { 14, 30, 5, 7, 9, 11, 15 }; Assert.Throws <ArgumentException>(() => LookingForBenefactor.NewAvg(a, 2)); }