Exemplo n.º 1
0
 public void PointShouldDie_Given1And1WithFewerThanTwoNeighbours_ShouldReturn0()
 {
     //---------------Set up test pack-------------------
     _game = new Game(10);
     _game.Toggle(0, 0);
     _game.Toggle(1, 1);
     //---------------Assert Precondition----------------
     Assert.AreEqual(1, _game.ValueOfPoint(1, 1));
     //---------------Execute Test ----------------------
     _game.Proc();
     //---------------Test Result -----------------------
     Assert.AreEqual(0, _game.ValueOfPoint(1, 1));
 }