Ejemplo n.º 1
0
        public void GetLiveNeighborsTest()
        {
            Cell newCell = new Cell { X = 0, Y = 0 };
            Cell anotherCell = new Cell { X = 1, Y = 0 };
            World world = new World();
            world.AddCell(0, 0);
            world.AddCell(0,1);
            world.AddCell(2,3);
            world.AddCell(-1, -1);
            List<Cell>actual = world.GetLiveNeighbors(world.GetCell(0,0).X, world.GetCell(0, 0).Y);

            Assert.AreEqual(2,actual.Count);
        }