GameOfLifeTests ResetGameState Method Delta Engine Documentation

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

public void ResetGameState()
Examples

[Test, CloseAfterFirstFrame]
public void ResetGameState()
{
    ReviveAllCells();
    gameOfLife.SimulateNextGeneration();
    gameOfLife.ResetGameState();
    Assert.AreEqual(0, gameOfLife.Population);
    Assert.AreEqual(0, gameOfLife.Generation);
}
See Also