Ejemplo n.º 1
0
        public void DiscoverTileSets()
        {
            var tileset_path = UserSettings.GetDefaultPath("tileset_path");

            tileset_path = System.IO.Path.Combine(tileset_path, "test");

            var tsr_root = new TileSetRepo.TileSetRepo();

            tsr_root.Discover(tileset_path, false);
            Assert.AreEqual(2, tsr_root.NumberOfTilesets());

            var tsr_root_recur = new TileSetRepo.TileSetRepo();

            tsr_root_recur.Discover(tileset_path, true);
            Assert.AreEqual(10, tsr_root_recur.NumberOfTilesets());
        }