public void BinaryEuclideanAlgorithmTest(int expectedResult, params int[] numbers) { long time; int actual = GreatestCommonDivision.BinaryEuclideanAlgorithm(out time, numbers); Assert.AreEqual(expectedResult, actual); }
public void BinaryEuclideanAlgorithm_OneNumber_ArgumentExceptionExpected() { int numbers = 5; long time; Assert.Throws <ArgumentException>(() => GreatestCommonDivision.BinaryEuclideanAlgorithm(out time, numbers)); }
public void BinaryEuclideanAlgorithm_NullParams_ArgumentNullExceptionExpected() { int[] numbers = null; long time; Assert.Throws <ArgumentNullException>(() => GreatestCommonDivision.BinaryEuclideanAlgorithm(out time, numbers)); }