Ejemplo n.º 1
0
 public void IsDeadCount7()
 {
     GameBoard board = new GameBoard(10);
     board.MakeCellAlive(5, 5);
     int actual = board.NeighborsAlive(4, 5)[1];
     Assert.AreEqual(7, actual);
 }
Ejemplo n.º 2
0
 public void IsAliveCount1()
 {
     GameBoard board = new GameBoard(10);
     board.MakeCellAlive(5, 5);
     int actual = board.NeighborsAlive(4,5)[0];
     Assert.AreEqual(1, actual);
 }