Exemple #1
0
        public void Test_RandomMap()
        {
            // Arrange
            int xMax = 10;
            int zMax = 10;

            string[,] map = new string[xMax, zMax];

            // Act
            map = GenerateMap.GenerateRandomMap(map, xMax, zMax, 50);
            GenerateMap.DebugPrintOutMap(map, xMax, zMax);

            // Assert
            Assert.IsTrue(map.Length > 0);
            //Assert.IsTrue(map[5, 5] == "HW");
            //Assert.IsTrue(map[3, 5] == "LW");
        }
 private void btnDebugPrint_Click(object sender, EventArgs e)
 {
     GenerateMap.DebugPrintOutMap(this.map, 70, 40);
 }