public void IsWithinGrid_False() { var grid = new GridSize(3); var pos = new BlockPosition(5, 9, 31); Assert.IsFalse(pos.IsWithinGrid(grid)); }
public void IsWithinGrid_Negative_False() { var grid = new GridSize(3); var pos = new BlockPosition(1, -2, 2); Assert.IsFalse(pos.IsWithinGrid(grid)); }
public void IsWithinGrid_Zero_True() { var grid = new GridSize(3); var pos = new BlockPosition(); Assert.IsTrue(pos.IsWithinGrid(grid)); }