private static TmxMap ImportAndProcessMap(string filename)
 {
     var importer = new TiledMapImporter();
     var processor = new TiledMapProcessor();
     var import = importer.Import(filename, Substitute.For<ContentImporterContext>());
     var result = processor.Process(import, Substitute.For<ContentProcessorContext>());
     return result.Map;
 }
        private static TmxMap ImportAndProcessMap(string filename)
        {
            var logger = Substitute.For<ContentBuildLogger>();
            var importer = new TiledMapImporter();
            var importerContext = Substitute.For<ContentImporterContext>();
            importerContext.Logger.Returns(logger);

            var processor = new TiledMapProcessor();
            var processorContext = Substitute.For<ContentProcessorContext>();
            processorContext.Logger.Returns(logger);

            var import = importer.Import(filename, importerContext);
            var result = processor.Process(import, processorContext);

            return result.Map;
        }