Пример #1
0
 public void TickOnThreeByThree()
 {
     RealGameOfLife game = new RealGameOfLife(3);
     game.Flipper(1, 0);
     game.Flipper(1, 1);
     game.Flipper(1, 2);
     game.Tick();
     RealGameOfLife game2 = new RealGameOfLife(3);
     game2.Flipper(0, 1);
     game2.Flipper(1, 1);
     game2.Flipper(2, 1);
     var first = game.GetBoard();
     var second = game2.GetBoard();
     CollectionAssert.AreEqual(first, second);
 }
Пример #2
0
 public void TickOnSingleLiveCellKillsCell()
 {
     RealGameOfLife game = new RealGameOfLife(8);
     game.Flipper(0, 0);
     game.Tick();
     Assert.IsFalse(game.cellStatus(0,0));
 }