public void S03AC2_1_neighbor_becomes_dead() { MockGameDisplay display = new MockGameDisplay(); Game game = new Game(new GameConfig("TestFiles\\story_03_AC2.conf"), display); game.Run(); Assert.AreEqual(false, display.IsAlive(1, 1)); Assert.AreEqual(false, display.IsAlive(0, 0)); }
public void S02AC1_set_1x1_2x2_in4x4_get1x1_2x2() { GameDisplay display = new MockGameDisplay(); Game game = new Game(new GameConfig("TestFiles\\story_02_AC1.conf"), display); //game.Run(); Assert.AreEqual(game.State, Game.GameStateNormal); Assert.AreEqual(true, display.IsAlive(1, 1)); Assert.AreEqual(true, display.IsAlive(2, 2)); }