Cell Revive Method Delta Engine Documentation

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

public void Revive()
Remarks

Tests: GameOfLife.Tests.CellTests
Examples

3 unit tests call GameOfLife.Cell.Revive
[Test, CloseAfterFirstFrame]
public void CellIsAliveAfterCallingRevice()
{
    cell.Revive();
    Assert.IsTrue(cell.IsAlive);
}
[Test, CloseAfterFirstFrame]
public void CellIsDeadAfterCallingKill()
{
    cell.Revive();
    cell.Kill();
    Assert.IsFalse(cell.IsAlive);
}
[Test, CloseAfterFirstFrame]
public void LiveCellHasWhiteColor()
{
    cell.Revive();
    Assert.AreEqual(Color.White, cell.Color);
}
See Also