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()); }
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()); }