public int BinaryAlgorithm_ThreeIntegers_ExpectedTheGreatestCommonDivisorOfThreeNumbers( int firstNumber, int secondNumber, int thirdNumber) { return(GreatestCommonDivisor.BinaryAlgorithm(firstNumber, secondNumber, thirdNumber)); }
public void BinaryAlgorithm_params_gcdReturn(int expected, params int[] arrayValue) { TimeSpan ts; Assert.AreEqual(expected, GreatestCommonDivisor.BinaryAlgorithm(out ts, arrayValue)); }
public void BinaryAlgorithm_abc_gcdReturn(int expected, int a, int b, int c) { TimeSpan ts; Assert.AreEqual(expected, GreatestCommonDivisor.BinaryAlgorithm(out ts, a, b, c)); }
public int BinaryAlgorithmSimpleTest(params int[] numbers) => GreatestCommonDivisor.BinaryAlgorithm(numbers);
public int BinaryAlgorithmTwoArguments(int a, int b) => GreatestCommonDivisor.BinaryAlgorithm(a, b);
public void BinaryAlgorithmArgumentException(params int[] numbers) { Assert.Throws <ArgumentException>(() => GreatestCommonDivisor.BinaryAlgorithm(numbers)); }
public int BinaryAlgorithm_Integers_ExpectedTheGreatestCommonDivisorOfNumbers(int firstNumber, int secondNumber, params int[] numbers) { return(GreatestCommonDivisor.BinaryAlgorithm(firstNumber, secondNumber, numbers)); }