GridTests IsValidPositionInOccupiedGrid 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 IsValidPositionInOccupiedGrid()
Examples

[Test, Ignore]
public void IsValidPositionInOccupiedGrid()
{
    grid.AffixBlock(new Block(displayMode, content, new Vector2D(5, 1)));
    Assert.IsFalse(grid.IsValidPosition(new Block(displayMode, content, new Vector2D(3, 0))));
    Assert.IsTrue(grid.IsValidPosition(new Block(displayMode, content, new Vector2D(5, 2))));
}
See Also