Exemplo n.º 1
0
 public void EuclideanGcdGcd_WithNull()
 {
     Assert.Throws <ArgumentNullException>(() => { GcdAlgorythms.EuclideanGcd(null); });
 }
Exemplo n.º 2
0
 public void EuclideanGcd_WithIncorrectCountOfElementsInArray(params int[] numbers)
 {
     Assert.Throws <ArgumentException>(() => { GcdAlgorythms.EuclideanGcd(numbers); });
 }
Exemplo n.º 3
0
 public int EuclideanGcd_with_correct_data(params int[] numbers)
 {
     return(GcdAlgorythms.EuclideanGcd(numbers));
 }