예제 #1
0
        public void TestMethodForSteinGCDWithTwoParameters()
        {
            first  = random.Next(-1005, 1005);                         // first random input parametr
            second = random.Next(-1006, 1006);                         // second random input parametr

            result = FindGCD.SteinGCD(first, second, out double time); // result of GCD calculation

            if (VerifyGCD(result, first, second))                      // verifying result GCD
            {
                ok = true;
            }
            else
            {
                ok = false;
            }

            Assert.IsTrue(ok);                                  // if ok is true, then test passed
        }