Exemplo n.º 1
0
        public void TestDarAdyacencias()
        {
            Escenario2();
            List <Int32> a    = grafo.DarAdyacencias(1);
            List <Int32> b    = grafo.DarAdyacencias(2);
            List <Int32> c    = grafo.DarAdyacencias(3);
            int          esp1 = 2;
            int          act1 = a.Count;
            int          esp2 = 0;
            int          act2 = b.Count;
            int          esp3 = 0;
            int          act3 = c.Count;

            Assert.AreEqual(esp1, act1);
            Assert.AreEqual(esp2, act2);
            Assert.AreEqual(esp3, act3);
        }