Beispiel #1
0
 public void NegativeTest(params int[] parameters)
 {
     Assert.Throws <ArgumentException>(() => GCDClass.GetEuclidianGCD(parameters));
 }
Beispiel #2
0
 public int ThreeOrMoreParametersPositiveEuclideanTest(params int[] parameters)
 {
     return(GCDClass.GetEuclidianGCD(parameters));
 }
Beispiel #3
0
 public void NullParametersNegativeEuclideanTest(params int[] parameters)
 {
     Assert.Throws <ArgumentNullException>(() => GCDClass.GetEuclidianGCD(null));
 }
Beispiel #4
0
        public int TwoParametersPositiveEuclideanTest(params int[] parameters)
        {
            int result = GCDClass.GetEuclidianGCD(parameters);

            return(result);
        }