public void HeroClixMap_Create_Indoor_CanNotContain_TilesWithIndoorBorders() { IHeroClixMap indoorMap; Tuple <List <BorderType>, List <BorderType>, List <BorderType>, List <BorderType> > borders = Tuple.Create( new List <BorderType> { BorderType.Indoor }, new List <BorderType>(), new List <BorderType>(), new List <BorderType>()); Tile[,] tiles = new Tile[, ] { { new Tile(borders) } }; indoorMap = new IndoorMap(IntellectualProperty.Other, "TestSet", "1x1_Indoor", tiles); }
public void HeroClixMap_Create_CorrectDimensions() { IHeroClixMap defaultIndoorMap = new IndoorMap(); IHeroClixMap fiveByFiveMap = new OutdoorMap(IntellectualProperty.Other, "TestSet", "5x5", 5, 5); IHeroClixMap twoByTwoMap; Tile[,] tiles = new Tile[, ] { { new Tile(), new Tile(TerrainType.Hindering) }, { new Tile(TerrainType.Blocking), new Tile() } }; twoByTwoMap = new IndoorMap(IntellectualProperty.Other, "TestSet", "2x2", tiles); Assert.IsTrue(defaultIndoorMap.GetTiles().Length == 384); Assert.IsTrue(fiveByFiveMap.GetTiles().Length == 25); Assert.IsTrue(twoByTwoMap.GetTiles().Length == 4); }