public void Import() { // Assign var importPath = Path.Combine(TestContext.DeploymentDirectory, "Import.xls"); var exporter = new ResourceImport(importPath, "en", TestContext.DeploymentDirectory); // Act exporter.Import(); // Assert Assert.IsTrue(File.Exists(Path.Combine(TestContext.DeploymentDirectory, "Strings.resx"))); Assert.IsTrue(File.Exists(Path.Combine(TestContext.DeploymentDirectory, "Strings.nl.resx"))); }
static void Main(string[] args) { var options = new CommandLineOptions(); ICommandLineParser parser = new CommandLineParser(); if (parser.ParseArguments(args, options, Console.Out)) { if (options.Export) { var export = new ResourceExport(options.InputDirectory, options.Language, options.XlsFile); export.Export(); } else { var importer = new ResourceImport(options.XlsFile, options.Language, options.InputDirectory); importer.Import(); } } }