public int SteinGCD_3Args_IsCorrect(int firstNumber, int secondNumber, int thirdNumber) { (int result, _) = GCDFinder.SteinGCD(firstNumber, secondNumber, thirdNumber); return(result); }
public void SteinGCD_ManyArgs_MinIntValue(params int[] numbers) => Assert.Throws <OverflowException>(() => GCDFinder.SteinGCD(numbers));
public int SteinGCD_ManyArgs_TimeTest(params int[] numbers) { (int result, TimeSpan time) = GCDFinder.SteinGCD(numbers); Debug.WriteLine("Time required: " + time.Ticks); //Time required: 5131 return(result); }
public void SteinGCD_3Args_MinIntValue(int firstNumber, int secondNumber, int thirdNumber) => Assert.Throws <OverflowException>(() => GCDFinder.SteinGCD(firstNumber, secondNumber, thirdNumber));
public int SteinGCD_ManyArgs_IsCorrect(params int[] numbers) { (int result, _) = GCDFinder.SteinGCD(numbers); return(result); }