Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Tests: Blocks.Tests.GridTests
2 unit tests call Blocks.Grid.GetValidStartingColumns(Blocks.Block)
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- block
- Type: Blocks Block
Return Value
Type: List Int32Remarks
Examples
[Test, Ignore] public void GetValidStartingColumns() { content.DoBlocksStartInARandomColumn = true; var block = new Block(displayMode, content, Vector2D.Zero); Assert.AreEqual(new[] { 0, 1, 2, 3, 4, 5, 6, 7, 8 }, grid.GetValidStartingColumns(block)); grid.AffixBlock(new Block(displayMode, content, new Vector2D(1, 1))); Assert.AreEqual(new[] { 5, 6, 7, 8 }, grid.GetValidStartingColumns(block)); }
[Test, Ignore] public void GetSingleValidStartingColumn() { content.DoBlocksStartInARandomColumn = false; var block = new Block(displayMode, content, Vector2D.Zero); Assert.AreEqual(new[] { 4 }, grid.GetValidStartingColumns(block)); }
See Also