Ejemplo n.º 1
0
 public void all_cells_are_dead()
 {
     var game = new Game(35, 36, 0d);
     foreach (var cell in game.Board)
     {
         Assert.That(cell.State == CellState.Dead);
     }
 }
Ejemplo n.º 2
0
 public void all_cells_are_alive()
 {
     var game = new Game(35, 36, 1d);
     foreach (var cell in game.Board)
     {
         Assert.That(cell.State == CellState.Alive);
     }
 }
Ejemplo n.º 3
0
 public void SetUp()
 {
     _game = new Game(GAME_WIDTH, GAME_HEIGHT, SEED_PROBABILITY);
 }