Ejemplo n.º 1
0
        public void FindDeviderForTwoDigitsTest()
        {
            TimeSpan time;

            for (int i = 0; i < testValuesCasesForTwoDigits.GetLength(0); i++)
            {
                int result = Euclidean.FindDevider(testValuesCasesForTwoDigits[i, 0],
                                                   testValuesCasesForTwoDigits[i, 1],
                                                   out time);
                Assert.AreEqual(testValuesCasesForTwoDigits[i, 2], result);
                TestContext.WriteLine(string.Format("Значение 1: {0}, Значение 2: {1}, Ожидаемое значение: {2}, Затраченое время: {3}", testValuesCasesForTwoDigits[i, 0],
                                                    testValuesCasesForTwoDigits[i, 1],
                                                    testValuesCasesForTwoDigits[i, 2],
                                                    time.TotalMilliseconds));
            }
        }