public void BackupNow_ExistingRepository_AddsInvalidNewFileToBackupDir() { // Test causes a crash in WrapShellCall.exe - is there an updated version? using (var scenario = new BackupScenario("BackupNow_ExistingRepository_AddsInvalidNewFileToBackupDir")) { scenario.BackupNow(); File.Create(Path.Combine(scenario.SourceProjectDir, "blah.lift")).Close(); scenario.BackupNow(); scenario.AssertFileDoesNotExistInWorkingDirectory("blah.lift"); scenario.AssertFileDoesNotExistInRepo("blah.lift"); } }
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"); } }
public void BackupNow_RemoveFile_RemovedFromBackupDir() { // Test causes a crash in WrapShellCall.exe - is there an updated version? using (BackupScenario scenario = new BackupScenario("BackupNow_RemoveFile_RemovedFromBackupDir")) { File.Create(Path.Combine(scenario.SourceProjectDir, "blah.foo")).Close(); scenario.BackupNow(); File.Delete(Path.Combine(scenario.SourceProjectDir, "blah.foo")); scenario.BackupNow(); scenario.AssertFileDoesNotExistInWorkingDirectory("blah.foo"); } }