public void FindGDCbySteinsAlgorithmTest_12_12result() { int a = 12; int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(a); Assert.AreEqual(12, gdc); }
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_12and9_3result() { int a = 12, b = 9; int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(a, b); Console.WriteLine(); Assert.AreEqual(3, gdc); }
public void FindGDCbySteinsAlgorithmTest_Negative9and3and6_ArgumentOutOfRangeException() { int a = -9, b = -3, c = -6; int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(a, b, c); }
public void FindGDCbySteinsAlgorithmTest_null_NullReferenceExeption() { int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(); }