Пример #1
0
        public void FindGDCSteinsAlgorithmTest_12and9and6_3result()
        {
            int a = 12, b = 9, c = 6;

            int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(a, b, c);

            Assert.AreEqual(3, gdc);
        }
Пример #2
0
        public void FindGDCbySteinsAlgorithmTest_12_12result()
        {
            int a = 12;

            int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(a);

            Assert.AreEqual(12, gdc);
        }
Пример #3
0
        public void FindGDCbyEuclideanAlgorithmTest_12and12and12_12result()
        {
            int a = 12, b = 12, c = 12;

            int gdc = GreatestCommonDevisor.FindGDCbyEuclideanAlgorithm(a, b, c);

            Assert.AreEqual(12, gdc);
        }
Пример #4
0
        public void FindGDCbyEuclideanAlgorithmTest_12and9_3result()
        {
            int a = 12, b = 9;

            int gdc = GreatestCommonDevisor.FindGDCbyEuclideanAlgorithm(a, b);

            Assert.AreEqual(3, gdc);
        }
Пример #5
0
        public void FindGDCbySteinsAlgorithmTest_12and9_3result()
        {
            int a = 12, b = 9;

            int gdc = GreatestCommonDevisor.FindGDCbySteinsAlgorithm(a, b);

            Console.WriteLine();

            Assert.AreEqual(3, gdc);
        }
Пример #6
0
        public void FindGDCbyEuclideanAlgorithmTest_Negative9and3and6_ArgumentOutOfRangeException()
        {
            int a = -9, b = -3, c = -6;

            int gdc = GreatestCommonDevisor.FindGDCbyEuclideanAlgorithm(a, b, c);
        }
Пример #7
0
 public void FindGDCbyEuclideanAlgorithmTest_null_NullReferenceExeption()
 {
     int gdc = GreatestCommonDevisor.FindGDCbyEuclideanAlgorithm();
 }