GameManager Update Method Delta Engine Documentation

Namespace: GameOfLife
Assembly: GameOfLife (in GameOfLife.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public void Update()

Implements

Updateable Update 
Remarks

Tests: GameOfLife.Tests.GameManagerTests
Examples

2 unit tests call GameOfLife.GameManager.Update
[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