コード例 #1
0
        public void IsWithinGrid_False()
        {
            var grid = new GridSize(3);
            var pos  = new BlockPosition(5, 9, 31);

            Assert.IsFalse(pos.IsWithinGrid(grid));
        }
コード例 #2
0
        public void IsWithinGrid_Negative_False()
        {
            var grid = new GridSize(3);
            var pos  = new BlockPosition(1, -2, 2);

            Assert.IsFalse(pos.IsWithinGrid(grid));
        }
コード例 #3
0
        public void IsWithinGrid_Zero_True()
        {
            var grid = new GridSize(3);
            var pos  = new BlockPosition();

            Assert.IsTrue(pos.IsWithinGrid(grid));
        }