Beispiel #1
0
        private void RunGetGCDTestTwoNumbersFor(int a, int b, int expected, string msg)
        {
            GCDCalc target = new GCDCalc();
            long    actual;

            actual = target.GetGCD(a, b);
            Assert.AreEqual(expected, actual, msg);
        }
Beispiel #2
0
        private void RunGetGCDTestForListOfNumbersFor(long[] list, int expected, string msg)
        {
            GCDCalc target = new GCDCalc();             // TODO: Initialize to an appropriate value
            long    actual;

            actual = target.GetGCD(list);
            Assert.AreEqual(expected, actual, msg);
        }