public void TestMethod7() { string[] busTimes = { "1", "9" }; double expected = 0.45; BusArrivalSimulator busArrivalSimulator = new BusArrivalSimulator(); double actual = busArrivalSimulator.waitForBus(busTimes); Assert.AreEqual(expected, actual, delta); }
public void TestMethod8() { string[] busTimes = { "4", "8", "12" }; double expected = 1.090909; BusArrivalSimulator busArrivalSimulator = new BusArrivalSimulator(); double actual = busArrivalSimulator.waitForBus(busTimes); Assert.AreEqual(expected, actual, delta); }
public void TestMethod6() { string[] busTimes = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; double expected = 0.176743; BusArrivalSimulator busArrivalSimulator = new BusArrivalSimulator(); double actual = busArrivalSimulator.waitForBus(busTimes); Assert.AreEqual(expected, actual, delta); }