Пример #1
0
        public void EuclideanBinaryAlgorithmMethod_paramsGCD_returned10(int expected, params int[] a)
        {
            int    actual;
            string time;

            (actual, time) = FindGCD.EuclideanAlgorithmMethod(a);

            Assert.AreEqual(expected, actual);
            Assert.Pass();
        }
Пример #2
0
        public void EuclideanAlgorithmMethod_3and10_5_GCD_Returned()
        {
            int expected = 1;

            int    actual;
            string time;

            (actual, time) = FindGCD.EuclideanAlgorithmMethod(3, 10);

            Assert.AreEqual(expected, actual);
        }
Пример #3
0
        public void EuclideanAlgorithmMethod_10and20and160and40_10_GCD_Returned()
        {
            int expected = 10;

            int    actual;
            string time;

            (actual, time) = FindGCD.EuclideanAlgorithmMethod(10, 20, 160, 40);

            Assert.AreEqual(expected, actual);
        }