Exemplo n.º 1
0
        public void TestBFS()
        {
            EscenarioDijkstra();
            List <int> a    = grafo.BFS(2);
            int        esp1 = 2;
            int        esp2 = 1;
            int        esp3 = 3;

            //Assert.AreEqual(esp1, a[0]);
            //Assert.AreEqual(esp2, a[1]);
            //Assert.AreEqual(esp3, a[2]);
            Assert.AreEqual(13, a.Count);
        }
Exemplo n.º 2
0
        public void TestConexión()
        {
            Escenario1();

            List <Stop> cant = matriz.BFS(c.STOPS[500]);
            int         esp  = 1867;
            int         act  = cant.Count;

            Assert.AreEqual(esp, act);
        }