public void GCDByEuclid_TakesTwoNumsAndTimeParameters_PositiveTestResult(uint num1, uint num2, uint expected) { uint actual = FindGCD.GCDByEuclid(num1, num2, out _time); Assert.AreEqual(expected, actual); Assert.IsTrue(_time != TimeSpan.FromSeconds(0)); }
public void GCDByEuclid_TakesThreeParameters_PositiveTestResult(uint num1, uint num2, uint num3, uint expected) => Assert.AreEqual(expected, FindGCD.GCDByEuclid(num1, num2, num3));
public void GCDByEuclid_TakesFiveParameters_PositiveTestResult(uint num1, uint num2, uint num3, uint num4, uint num5, uint expected) { Assert.AreEqual(expected, FindGCD.GCDByEuclid(num1, num2, num3, num4, num5)); }
public void GCDByEuclid_TakeZeroParameters_ThrowsArgumentException(uint num1, uint num2) { Assert.ThrowsException <ArgumentException>(() => FindGCD.GCDByEuclid(num1, num2)); }