public void SumOfNeighborsFour()
 {
     List<Cell> alive = new List<Cell>();
     alive.Add(new Cell(0, 0));
     alive.Add(new Cell(1, 0));
     alive.Add(new Cell(2, 0));
     alive.Add(new Cell(2, 1));
     alive.Add(new Cell(1, 2));
     GameBoard board = new GameBoard(alive);
     Assert.AreEqual(3, board.NeighborsAliveCount(board.AliveCells[3]));
 }
 public void SumOfAliveNeighbors()
 {
     List<Cell> alive = new List<Cell>();
     alive.Add(new Cell ( 1, 2 ));
     alive.Add(new Cell ( 2, 2 ));
     alive.Add(new Cell ( 2, 3 ));
     alive.Add(new Cell ( 4, 3 ));
     GameBoard board = new GameBoard(alive);
     Assert.AreEqual(3, board.NeighborsAliveCount(new Cell(1, 3)));
 }