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, 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