public void EuclideanGCD_ManyArgs_MinIntValue(params int[] numbers) => Assert.Throws <OverflowException>(() => GCDFinder.EuclideanGCD(numbers));
public void EuclideanGCD_3Args_MinIntValue(int firstNumber, int secondNumber, int thirdNumber) => Assert.Throws <OverflowException>(() => GCDFinder.EuclideanGCD(firstNumber, secondNumber, thirdNumber));
public int EuclideanGCD_ManyArgs_IsCorrect(params int[] numbers) { (int result, _) = GCDFinder.EuclideanGCD(numbers); return(result); }
public int EuclideanGCD_ManyArgs_TimeTest(params int[] numbers) { (int result, TimeSpan time) = GCDFinder.EuclideanGCD(numbers); Debug.WriteLine("Time required: " + time.Ticks); //Time required: 4602 return(result); }
public int EuclideanGCD_3Args_IsCorrect(int firstNumber, int secondNumber, int thirdNumber) { (int result, _) = GCDFinder.EuclideanGCD(firstNumber, secondNumber, thirdNumber); return(result); }