Example #1
0
 public void EuclidGCD_LessThanTwoArgumentsPassed_ArgumentExceptionThrown(params int[] numbers)
 {
     Assert.Throws <ArgumentException>(() => NumericUtils.EuclidGCD(numbers));
 }
Example #2
0
 public void EuclidGCD_ArrayOfZeroesPassed_ArgumentExceptionThrown(params int[] numbers)
 {
     Assert.Throws <ArgumentException>(() => NumericUtils.EuclidGCD(numbers));
 }
Example #3
0
        public void EuclidGCD_ThreeZeroesPassed_ArgumentExceptionThrown()
        {
            int first = 0, second = 0, third = 0;

            Assert.Throws <ArgumentException>(() => NumericUtils.EuclidGCD(first, second, third));
        }
Example #4
0
 public int EuclidGCD_ArrayOfCorrectValuesPassed_WorksCorrectly(params int[] numbers)
 {
     return(NumericUtils.EuclidGCD(numbers));
 }
Example #5
0
 public int EuclidGCD_ThreeCorrectValuesPassed_WorksCorrectly(int first, int second, int third)
 {
     return(NumericUtils.EuclidGCD(first, second, third));
 }