Namespace: GameOfLife
Assembly: GameOfLife (in GameOfLife.exe) Version: 1.1.1.0 (1.1.1)
Tests: GameOfLife.Tests.GameManagerTests
2 unit tests call GameOfLife.GameManager.Update
Assembly: GameOfLife (in GameOfLife.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Implements
Updateable UpdateRemarks
Examples
[Test] public void SimulationIsNotRunningWhenStarted() { manager.Update(); Assert.AreEqual(0, manager.gameOfLife.Population); }
[Test] public void SimulationRunsWithFourTickPerSecondWhenStarted() { manager.StartOrStopSimulation(); Assert.IsTrue(manager.IsSimulationRunning); manager.Update(); AdvanceTimeAndUpdateEntities(1); Assert.GreaterOrEqual(manager.gameOfLife.Generation, 4); }
See Also