Example #1
0
        public void TestUnlockableBlock()
        {
            BlockImpl lockedBlock = block.GetLockedBlock();

            Assert.AreEqual(lockedBlock.GetType(), BlockType.LOCKED);
            Assert.True(lockedBlock.IsInteractable());
            Assert.False(lockedBlock.IsStall());
            Assert.True(lockedBlock.IsWalkable());
        }
Example #2
0
        public void TestTerrainBlock()
        {
            BlockImpl terrainBlock = block.GetTerrainBlock();

            Assert.AreEqual(terrainBlock.GetType(), BlockType.TERRAIN);
            Assert.AreNotEqual(terrainBlock.GetType(), BlockType.LOCKED);
            Assert.False(terrainBlock.IsInteractable());
            Assert.False(terrainBlock.IsStall());
            Assert.True(terrainBlock.IsWalkable());
        }