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

[Test, CloseAfterFirstFrame]
public void CheckEmptyLevel()
{
    Resolve<Paddle>();
    var level = Resolve<EmptyLevel>();
    Assert.IsNull(level.GetBrickAt(0.25f, 0.25f));
    Assert.IsNull(level.GetBrickAt(0.5f, 0.25f));
    Assert.IsNull(level.GetBrickAt(0.75f, 0.35f));
    Assert.AreEqual(0, level.BricksLeft);
}
See Also