Example #1
0
        public void TestFieldBlock()
        {
            BlockImpl fieldBlock = block.GetFieldBlock();

            Assert.AreEqual(fieldBlock.GetType(), BlockType.FIELD);
            Assert.True(fieldBlock.IsInteractable());
            Assert.False(fieldBlock.IsStall());
        }
Example #2
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 #3
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());
        }