Пример #1
0
 public void BinEuclideanMethod_DifParam_GCD()
 {
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(40, 0), 40);
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(40, 2), 2);
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(40, -2), 2);
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(40, 24, 32), 8);
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(40, 24, 0), 8);
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(40, 24, -8), 8);
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(40, 24, 32), 8);
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(50, 25, 10, 95, 100), 5);
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(50, 25, 10, 95, -100), 5);
     Assert.AreEqual(AlgorithmGCD.BinEuclideanMethod(50, 25, 10, 0, 100), 5);
 }
Пример #2
0
 public void Null_Exc()
 {
     AlgorithmGCD.EuclideanMethod();
     AlgorithmGCD.BinEuclideanMethod();
 }