예제 #1
0
        private static void Main(string[] args)
        {
            Paths paths = GetPaths(args);

             try
             {
            WordPressExportConverter converter = new WordPressExportConverter();
            converter.Convert(paths.Input.FullName, paths.Output.FullName);

            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine("Done");
             }
             catch (Exception exception)
             {
            Console.WriteLine("An unexpected error occurred while trying to convert the file {0}.", paths.Input);
            Console.WriteLine();
            Console.WriteLine(exception);
             }

             Console.WriteLine();
             Console.WriteLine();
             Console.WriteLine("Press any key to exit.");
             Console.ReadKey();
        }
 public void SetUp()
 {
     this.converter = new WordPressExportConverter();
 }