public void TesttiredSheepMaxTest(int n) { var tiredSheep = new TiredSheep(); var result = tiredSheep.GetSleepNumber(n); Console.WriteLine(result); }
public void TesttiredSheep(int n, string expectedResult) { var tiredSheep = new TiredSheep(); var result = tiredSheep.GetSleepNumber(n); Assert.AreEqual(expectedResult, result); }
public static void ProcessCases(IEnumerable <CountingSheepCase> cases) { foreach (var countingSheepCase in cases) { var tiredSheep = new TiredSheep(); countingSheepCase.Output = tiredSheep.GetSleepNumber(countingSheepCase.N); } }
public void LargeDatasetTest() { for (var i = 101; i > -1; i--) { var tiredSheep = new TiredSheep(); var result = tiredSheep.GetSleepNumber(1000000 - i); } }