public void Tile_AddMarker_ToBlockingTerrain_Fails() { Tile tile = new Tile(TerrainType.Blocking); HeroClixCharacter character = new HeroClixCharacter(); tile.AddMarker(new SmokeMarker(character)); }
public void Tile_AddMarker_Debris_ToBlockingTerrain() { Tile tile = new Tile(TerrainType.Blocking); HeroClixCharacter character = new HeroClixCharacter(); tile.AddMarker(new DebrisMarker(character)); Assert.IsTrue(tile.GetTerrainType() == TerrainType.Hindering); }
public void Tile_AddMarker_Clear_ToBlockingTerrain() { Tile tile = new Tile(TerrainType.Blocking); HeroClixCharacter character = new HeroClixCharacter(); tile.AddMarker(new ClearMarker(character)); Assert.IsTrue(tile.GetTerrainType() == TerrainType.Clear); }
public void Tile_CurrentTerrain_NonEmptyTerrainMarkerStack() { Tile tile = new Tile(); HeroClixCharacter character = new HeroClixCharacter(); tile.AddMarker(new SmokeMarker(character)); tile.AddMarker(new WaterMarker(character)); tile.AddMarker(new WaterMarker(character)); tile.AddMarker(new SmokeMarker(character)); Assert.IsTrue(tile.GetTerrainType() == TerrainType.Hindering); tile.RemoveMarker(); Assert.IsTrue(tile.GetTerrainType() == TerrainType.Water); tile.RemoveMarker(); Assert.IsTrue(tile.GetTerrainType() == TerrainType.Water); tile.RemoveMarker(); Assert.IsTrue(tile.GetTerrainType() == TerrainType.Hindering); tile.RemoveMarker(); Assert.IsTrue(tile.GetTerrainType() == TerrainType.Clear); }