示例#1
0
 public void TestLoadingData()
 {
     BusRouteGuider.View.SearchRoute alg = new BusRouteGuider.View.SearchRoute();
     String actual = alg.start();
     String Expected = "success";
     Assert.AreEqual(actual, Expected);
 }
示例#2
0
        public void TestLoadingData()
        {
            BusRouteGuider.View.SearchRoute alg = new BusRouteGuider.View.SearchRoute();
            String actual   = alg.start();
            String Expected = "success";

            Assert.AreEqual(actual, Expected);
        }
示例#3
0
 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);
 }
示例#4
0
        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);
        }