Esempio n. 1
0
        public void MapParserTestSimple()
        {
            // Use the Assert class to test conditions
            var map = MapParser.GetMap(@"Assets\Maps\test");

            Assert.AreEqual(map.rows, 3);
            Assert.AreEqual(map.cols, 6);

            Assert.AreEqual(map.tiles.Count, 4);

            Assert.AreEqual(map.tiles[(2, 0)], MapParser.TileType.LaserRight);