Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Tests: Blocks.Tests.GridTests
1 unit tests call Blocks.Grid.IsABrickOnFirstRow
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Return Value
Type: BooleanRemarks
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