Namespace: GameOfLife
Assembly: GameOfLife (in GameOfLife.exe) Version: 1.1.1.0 (1.1.1)
Tests: GameOfLife.Tests.GameManagerTests
3 unit tests call GameOfLife.GameManager.IsSimulationRunning
Assembly: GameOfLife (in GameOfLife.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: BooleanRemarks
Examples
[Test] public void SimulationRunsWithFourTickPerSecondWhenStarted() { manager.StartOrStopSimulation(); Assert.IsTrue(manager.IsSimulationRunning); manager.Update(); AdvanceTimeAndUpdateEntities(1); Assert.GreaterOrEqual(manager.gameOfLife.Generation, 4); }
[Test] public void StopSimulation() { SimulationRunsWithFourTickPerSecondWhenStarted(); manager.StartOrStopSimulation(); Assert.IsFalse(manager.IsSimulationRunning); }
[Test] public void ResetGameAlsoStopSimulationWhenCurrentlyRunning() { SimulationRunsWithFourTickPerSecondWhenStarted(); manager.ResetGame(); Assert.IsFalse(manager.IsSimulationRunning); }
See Also