Ejemplo n.º 1
0
        public void GetNeighboursIndex_ShouldAssignCorrectNeighbours
            (int idCell, int[] expectedNeighbours)
        {
            IList <Cell> neighbours = new List <Cell>();

            neighbours = simpleUniverse.GetNeighboursOfCell(idCell);

            IList <int> neighboursId = new List <int>();

            foreach (Cell cell in neighbours)
            {
                neighboursId.Add(cell.IndexCell);
            }

            Assert.AreEqual(expectedNeighbours, neighboursId);
        }