LevelTests SwitchLevels 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 SwitchLevels()
Examples

[Test]
public void SwitchLevels()
{
    var level = Resolve<Level>();
    var score = Resolve<Score>();
    for (int levelNum = 1; levelNum <= 5; levelNum++)
    {
        Assert.AreEqual(levelNum, score.Level);
        level.InitializeNextLevel();
    }
}
See Also