public void EuclidGCD_LessThanTwoArgumentsPassed_ArgumentExceptionThrown(params int[] numbers) { Assert.Throws <ArgumentException>(() => NumericUtils.EuclidGCD(numbers)); }
public void EuclidGCD_ArrayOfZeroesPassed_ArgumentExceptionThrown(params int[] numbers) { Assert.Throws <ArgumentException>(() => NumericUtils.EuclidGCD(numbers)); }
public void EuclidGCD_ThreeZeroesPassed_ArgumentExceptionThrown() { int first = 0, second = 0, third = 0; Assert.Throws <ArgumentException>(() => NumericUtils.EuclidGCD(first, second, third)); }
public int EuclidGCD_ArrayOfCorrectValuesPassed_WorksCorrectly(params int[] numbers) { return(NumericUtils.EuclidGCD(numbers)); }
public int EuclidGCD_ThreeCorrectValuesPassed_WorksCorrectly(int first, int second, int third) { return(NumericUtils.EuclidGCD(first, second, third)); }