LevelTests LifeLostLeadsToGameOver Method Delta Engine Documentation

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

public void LifeLostLeadsToGameOver()
Examples

[Test, CloseAfterFirstFrame]
public void LifeLostLeadsToGameOver()
{
    bool lost = false;
    var score = new Score();
    score.GameOver += () => lost = true;
    var level = new Level(score);
    level.LifeLost();
    level.LifeLost();
    level.LifeLost();
    Assert.True(lost);
}
See Also