Exemplo n.º 1
0
 public int BinaryAlgorithm_ThreeIntegers_ExpectedTheGreatestCommonDivisorOfThreeNumbers(
     int firstNumber,
     int secondNumber,
     int thirdNumber)
 {
     return(GreatestCommonDivisor.BinaryAlgorithm(firstNumber, secondNumber, thirdNumber));
 }
Exemplo n.º 2
0
        public void BinaryAlgorithm_params_gcdReturn(int expected, params int[] arrayValue)
        {
            TimeSpan ts;

            Assert.AreEqual(expected, GreatestCommonDivisor.BinaryAlgorithm(out ts, arrayValue));
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
 public int BinaryAlgorithmSimpleTest(params int[] numbers) => GreatestCommonDivisor.BinaryAlgorithm(numbers);
Exemplo n.º 5
0
 public int BinaryAlgorithmTwoArguments(int a, int b) => GreatestCommonDivisor.BinaryAlgorithm(a, b);
Exemplo n.º 6
0
 public void BinaryAlgorithmArgumentException(params int[] numbers)
 {
     Assert.Throws <ArgumentException>(() => GreatestCommonDivisor.BinaryAlgorithm(numbers));
 }
Exemplo n.º 7
0
 public int BinaryAlgorithm_Integers_ExpectedTheGreatestCommonDivisorOfNumbers(int firstNumber, int secondNumber, params int[] numbers)
 {
     return(GreatestCommonDivisor.BinaryAlgorithm(firstNumber, secondNumber, numbers));
 }