Пример #1
0
        public void Tile_AddMarker_ToBlockingTerrain_Fails()
        {
            Tile tile = new Tile(TerrainType.Blocking);
            HeroClixCharacter character = new HeroClixCharacter();

            tile.AddMarker(new SmokeMarker(character));
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }