Exemple #1
0
 public void GetGCDBySteinsAlgorithmTest_InvalidNumberOfParameters_ArgumentException(params int[] args)
 => Assert.Throws <ArgumentException>(() => GCDFinder.GetGCDBySteinsAlgorithm(out _, args));
Exemple #2
0
 public int GetGCDBySteinsAlgorithmTest_Zeros(params int[] args)
 => GCDFinder.GetGCDBySteinsAlgorithm(out _, args);
Exemple #3
0
 public int GetGCDBySteinsAlgorithmTest_NegativeNumbers(params int[] args)
 => GCDFinder.GetGCDBySteinsAlgorithm(out _, args);
Exemple #4
0
 public void GetGCDBySteinsAlgorithmTest_NullArgs_ArgumentNullException()
 => Assert.Throws <ArgumentNullException>(() => GCDFinder.GetGCDBySteinsAlgorithm(out _, null));