public void TestLoadingData() { BusRouteGuider.View.SearchRoute alg = new BusRouteGuider.View.SearchRoute(); String actual = alg.start(); String Expected = "success"; Assert.AreEqual(actual, Expected); }
public void TestRoutesInPath() { BusRouteGuider.View.SearchRoute alg = new BusRouteGuider.View.SearchRoute(); alg.start(); String routeNumber = "002"; Dictionary<String, BusRouteGuider.View.Route> routes = alg.getAllRoutes(); String path = routes[routeNumber].getPathForTesting(); String expected = "Fort->Kiribathgoda->Miriswatha->Nittambuwa->Warakapola->Nelundeniya->Galigamuwa->Kegalle->Mawanella->Kadugannawa->Peradeniya->Kandy"; Assert.AreEqual(expected, path); }
public void TestRoutesInPath() { BusRouteGuider.View.SearchRoute alg = new BusRouteGuider.View.SearchRoute(); alg.start(); String routeNumber = "002"; Dictionary <String, BusRouteGuider.View.Route> routes = alg.getAllRoutes(); String path = routes[routeNumber].getPathForTesting(); String expected = "Fort->Kiribathgoda->Miriswatha->Nittambuwa->Warakapola->Nelundeniya->Galigamuwa->Kegalle->Mawanella->Kadugannawa->Peradeniya->Kandy"; Assert.AreEqual(expected, path); }