Exemple #1
0
 public void GetGCDByEuclideanAlgorithmTest_NullArgs_ArgumentNullException()
 => Assert.Throws <ArgumentNullException>(() => GCDFinder.GetGCDByEuclideanAlgorithm(out _, null));
Exemple #2
0
 public void GetGCDByEuclideanAlgorithmTest_InvalidNumberOfParameters_ArgumentException(params int[] args)
 => Assert.Throws <ArgumentException>(() => GCDFinder.GetGCDByEuclideanAlgorithm(out _, args));
Exemple #3
0
 public int GetGCDByEuclideanAlgorithmTest_Zeros(params int[] args)
 => GCDFinder.GetGCDByEuclideanAlgorithm(out _, args);
Exemple #4
0
 public int GetGCDByEuclideanAlgorithmTest_NegativeNumbers(params int[] args)
 => GCDFinder.GetGCDByEuclideanAlgorithm(out _, args);
Exemple #5
0
 public int GetGCDByEuclideanAlgorithmTest_PositiveNumbers(int[] args)
 => GCDFinder.GetGCDByEuclideanAlgorithm(out _, args);