Example #1
0
 public void BackupNow_RemoveFile_RemovedFromBackupDir()
 {
     // Test causes a crash in WrapShellCall.exe - is there an updated version?
     using (var scenario = new BackupScenario("BackupNow_RemoveFile_RemovedFromBackupDir"))
     {
         scenario.MakeTestLiftFile("blah.lift");
         scenario.BackupNow();
         File.Delete(Path.Combine(scenario.SourceProjectDir, "blah.lift"));
         scenario.BackupNow();
         scenario.AssertFileDoesNotExistInWorkingDirectory("blah.lift");
     }
 }
Example #2
0
 public void BackupNow_ExistingRepository_AddsNewFileToBackupDir()
 {
     // Test causes a crash in WrapShellCall.exe - is there an updated version?
     using (var scenario = new BackupScenario("BackupNow_ExistingRepository_AddsNewFileToBackupDir"))
     {
         scenario.BackupNow();
         scenario.MakeTestLiftFile("blah.lift");
         scenario.BackupNow();
         scenario.AssertFileExistsInWorkingDirectory("blah.lift");
         scenario.AssertFileExistsInRepo("blah.lift");
     }
 }