GameOfLifeTests StaticObjectShouldNotChangeShapeAfterOneTick 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 StaticObjectShouldNotChangeShapeAfterOneTick()
Examples

[Test, CloseAfterFirstFrame]
public void StaticObjectShouldNotChangeShapeAfterOneTick()
{
    var staticSeed = new[,] { { 2, 1 }, { 1, 2 }, { 3, 2 }, { 2, 3 } };
    gameOfLife.BatchReviveCells(staticSeed);
    gameOfLife.SimulateNextGeneration();
    AssertAllCellsAreAlive(staticSeed);
}
See Also