GridTests GetValidStartingColumns 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 GetValidStartingColumns()
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