Example #1
0
 public void bigArray()
 {
     RealGameOfLife game = new RealGameOfLife(11);
     bool actual = game.cellStatus(10, 10);
     bool expected = false;
     Assert.AreEqual(actual, expected);
 }
Example #2
0
 public void TickOnSingleLiveCellKillsCell()
 {
     RealGameOfLife game = new RealGameOfLife(8);
     game.Flipper(0, 0);
     game.Tick();
     Assert.IsFalse(game.cellStatus(0,0));
 }
Example #3
0
 public void flipArray()
 {
     RealGameOfLife game = new RealGameOfLife(11);
     bool original = game.cellStatus(10, 10);
     game.Flipper(10, 10);
     bool newValue = game.cellStatus(10, 10);
     Assert.AreNotEqual(original, newValue);
 }