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

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

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

            // Assert
            Assert.IsTrue(map.Length > 0);
            Assert.IsTrue(map[5, 5] == "HW");
            Assert.IsTrue(map[3, 5] == "LW");
        }