public void Test_FindNextBiggerNumber(int number, int expected)
        {
            var result = BasicCoding.FindNextBiggerNumber(number);

            Console.Write($"Time elapsed: {result.Item2.Elapsed}");
            Assert.AreEqual(result.Item1, expected);
        }
Beispiel #2
0
 public int FindNextBiggerNumber_thatContainsOnlyGivenDigits(int value)
 {
     return(BasicCoding.FindNextBiggerNumber(value));
 }
Beispiel #3
0
        public void FindingNumbersTest()
        {
            long delay = 0;

            Assert.AreEqual(BasicCoding.FindNextBiggerNumber(12, out delay), 21);
        }