public void FindNextBiggerNumber( [Values(12, 513, 2017, 414, 144, 1234321, 1234126, 3456432, 10, 20)] int number, [Values(21, 531, 2071, 441, 414, 1241233, 1234162, 3462345, -1, -1)] int expected) { int result = FindNumber.FindNextBiggerNumber(number); Assert.AreEqual(expected, result); }
public int FindNextBiggerNumber_Righttest(int number) { long time = 0; return(FindNumber.FindNextBiggerNumber(number, out time)); }
public void FindNextBiggerNumber_ThrowsArgumentException() { long time = 0; Assert.Throws <ArgumentException>(() => FindNumber.FindNextBiggerNumber(-1, out time)); }
public int FindNextBiggerNumberTest(int number) { return(FindNumber.FindNextBiggerNumber(number)); }
public void FindNextBiggerNumberTest_NumberIsNotPositive_ThrowException(int number) { Assert.Throws <ArgumentOutOfRangeException>(() => FindNumber.FindNextBiggerNumber(number)); }
public int FindNextBiggerNumberTest(int number) { var findNumber = new FindNumber(); return(findNumber.FindNextBiggerNumber(number)); }