public void EnterCell() { var grassBoard = new GrassBoard(CurrentParams, 5, 5); grassBoard.CellEntered(0, 0); Assert.That(!grassBoard.GrassCells[0][0].IsAlive); }
public void GrowInOneTurn() { var grassBoard = new GrassBoard(CurrentParams, 5, 5); grassBoard.CellEntered(0, 0); grassBoard.UpdateGrass(); Assert.That(grassBoard.GrassCells[0][0].IsAlive); }
public void NoGrass() { var grassBoard = new GrassBoard(CurrentParams, 2, 2); grassBoard.CellEntered(0, 0); grassBoard.CellEntered(0, 1); grassBoard.CellEntered(1, 0); grassBoard.CellEntered(1, 1); grassBoard.UpdateGrass(); grassBoard.UpdateGrass(); grassBoard.UpdateGrass(); grassBoard.UpdateGrass(); Assert.That(!grassBoard.GrassCells[0][0].IsAlive); Assert.That(!grassBoard.GrassCells[0][1].IsAlive); Assert.That(!grassBoard.GrassCells[1][0].IsAlive); Assert.That(!grassBoard.GrassCells[1][1].IsAlive); }