Score NextLevel Method Delta Engine Documentation

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

public void NextLevel()
Remarks

Tests: Breakout.Tests.ScoreTests
Examples

2 unit tests call Breakout.Score.NextLevel
[Test]
public void NextLevelWithoutInitialization()
{
    bool isGameOver = false;
    score.GameOver += () => isGameOver = true;
    Assert.AreEqual(1, score.Level);
    score.NextLevel();
    Assert.AreEqual(2, score.Level);
    Assert.IsFalse(isGameOver);
}
[Test]
public void NextLevelWithLevelInitialization()
{
    Resolve<Level>();
    bool isGameOver = false;
    score.GameOver += () => isGameOver = true;
    Assert.AreEqual(1, score.Level);
    score.NextLevel();
    Assert.AreEqual(2, score.Level);
    Assert.IsFalse(isGameOver);
}
See Also