Namespace: Blocks.Tests
Assembly: Blocks.Tests (in Blocks.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: Blocks.Tests (in Blocks.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
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