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

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