GameOfDeath GenerationCount Property Delta Engine Documentation

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

public int GenerationCount { get; }

Property Value

Type: Int32
Remarks

Tests: GameOfDeath.Tests.GameOfDeathTests
Examples

1 unit tests call GameOfDeath.GameOfDeath.GenerationCount
[Test]
public void CreateSimplestGameOfLifeEverWith1X1()
{
    game = new GameOfDeath(1, 1);
    Assert.AreEqual(0, game.GenerationCount);
    game.Update();
    Assert.AreEqual(1, game.GenerationCount);
}
See Also