Ejemplo n.º 1
0
        /*Check if the startToDestination functionality genearates correct results*/
        public void TestStartToDestinationFunctionality()
        {
            BusRouteGuider.View.Algorithm alg = new BusRouteGuider.View.Algorithm();
            String start    = "Katubedda";
            String end      = "Pettah";
            String expected = "success";
            LinkedList <String> temproutes    = new LinkedList <string>();
            LinkedList <String> templocations = new LinkedList <string>();
            String actual = alg.findRoutes(start, start, end, temproutes, templocations, 3);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
 /*Check if the startToDestination functionality genearates correct results*/
 public void TestStartToDestinationFunctionality()
 {
     BusRouteGuider.View.Algorithm alg = new BusRouteGuider.View.Algorithm();
     String start = "Katubedda";
     String end = "Pettah";
     String expected = "success";
     LinkedList<String> temproutes = new LinkedList<string>();
     LinkedList<String> templocations = new LinkedList<string>();
     String actual = alg.findRoutes(start,start,end,temproutes,templocations,3);
     Assert.AreEqual(expected, actual);
 }