Example #1
0
        public void GetPreyCellNeighbors_CoordinatesOfTheCell_ShouldReturnPreyCellNeighbors(int x, int y)
        {
            var cell           = new Cell(x, y);
            var expectedResult = CellContainer.GetNeighbors(cell).Where(c => c.GetType().Name == "Prey").ToList().Count;
            var actualResult   = CellContainer.GetPreyNeighborCells(cell).Count;

            Assert.Equal(expectedResult, actualResult);
        }