public void TestFileToFolder() { var folder = Path.Combine(Config.CurrentDirectory, "TestBackup"); DeleteFolder(folder); try { var config = Config.Get("FileToFolder.Config.json"); var runner = new BackupRunner(config); runner.Run(); Assert.True(Directory.Exists(folder)); Assert.True(File.Exists(Path.Combine(folder, "TestDestinationFolder", "TestFile.txt"))); } finally { DeleteFolder(folder); } }
static void Main(string[] args) { BackupRunner backupRunner = new BackupRunner(); backupRunner.Run(); }