public void FindGDCSteinsAlgorithmTest_12and9and6_3result() { int a = 12, b = 9, c = 6; int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(a, b, c); Assert.AreEqual(3, gdc); }
public void FindGDCbySteinsAlgorithmTest_12_12result() { int a = 12; int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(a); Assert.AreEqual(12, gdc); }
public void FindGDCbyEuclideanAlgorithmTest_12and12and12_12result() { int a = 12, b = 12, c = 12; int gdc = GreatestCommonDevisor.FindGDCbyEuclideanAlgorithm(a, b, c); Assert.AreEqual(12, gdc); }
public void FindGDCbyEuclideanAlgorithmTest_12and9_3result() { int a = 12, b = 9; int gdc = GreatestCommonDevisor.FindGDCbyEuclideanAlgorithm(a, b); Assert.AreEqual(3, gdc); }
public void FindGDCbySteinsAlgorithmTest_12and9_3result() { int a = 12, b = 9; int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(a, b); Console.WriteLine(); Assert.AreEqual(3, gdc); }
public void FindGDCbyEuclideanAlgorithmTest_Negative9and3and6_ArgumentOutOfRangeException() { int a = -9, b = -3, c = -6; int gdc = GreatestCommonDevisor.FindGDCbyEuclideanAlgorithm(a, b, c); }
public void FindGDCbyEuclideanAlgorithmTest_null_NullReferenceExeption() { int gdc = GreatestCommonDevisor.FindGDCbyEuclideanAlgorithm(); }