public void TestFieldBlock() { BlockImpl fieldBlock = block.GetFieldBlock(); Assert.AreEqual(fieldBlock.GetType(), BlockType.FIELD); Assert.True(fieldBlock.IsInteractable()); Assert.False(fieldBlock.IsStall()); }
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()); }