Example #1
0
        public void GenerateMineralsTest()
        {
            Dirtland d = new Dirtland();

            Assert.IsNotNull(d);
            string[,,] biomes = d.AssignBiomes(10, 9, 2);
            Assert.IsNotNull(biomes);
            Tile[,,] tiles = d.GenerateLandType(biomes);
            Assert.IsNotNull(tiles);
            Assert.AreEqual(10, tiles.GetLength(0));
            Assert.AreEqual(9, tiles.GetLength(1));
            Assert.AreEqual(2, tiles.GetLength(2));
            tiles = d.GenerateMinerals(tiles);
            Assert.IsNotNull(tiles);
        }