GridTests IsABrickOnFirstRow Method Delta Engine Documentation

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

public void IsABrickOnFirstRow()
Examples

[Test]
public void IsABrickOnFirstRow()
{
    var lost = false;
    controller.Lose += () => { lost = true; };
    Assert.IsFalse(grid.IsABrickOnFirstRow());
    grid.AffixBlock(new Block(displayMode, content, new Vector2D(1, 1)));
    Assert.IsFalse(grid.IsABrickOnFirstRow());
    grid.AffixBlock(new Block(displayMode, content, new Vector2D(2, 0)));
    Assert.IsTrue(grid.IsABrickOnFirstRow());
    AdvanceTimeAndUpdateEntities();
    Assert.IsTrue(lost);
}
See Also