public void FileExistsWithoutOverwriteErrors() { var existingZip = TestFolders.CreateTempFile("zip"); var compressionFolder = CreateValidCompressionFolder(); var results = RunExe(existingZip, compressionFolder); Assert.NotEqual(0, results.ExitCode); Assert.Contains("Output file '" + existingZip + "' already exists.", results.StandardError); }
public void FileExistsWithOverwriteErrors() { var existingZip = TestFolders.CreateTempFile("zip"); var compressionFolder = CreateValidCompressionFolder(); var results = RunExe(existingZip, compressionFolder, "--overwrite"); Assert.Equal(0, results.ExitCode); Assert.Contains("Overwritting file '" + existingZip + "' with new compression data.", results.StandardOutput); Assert.True(File.Exists(existingZip)); }
private static string CreateTempZipFile() { var testfilePath = TestFolders.CreateTempFile("zip"); return("\"" + testfilePath + "\""); }