"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Duplicati/CommandLine/BackendTester/Program.cs" between
duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25.tar.gz and duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11.tar.gz

About: Duplicati is a backup client that securely stores encrypted, incremental, compressed backups on local devices, cloud storage services and remote file servers (for Windows, macOS and Linux). A remark: This officially "pre-release" seems to run stable.

Program.cs  (duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25):Program.cs  (duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11)
skipping to change at line 406 skipping to change at line 406
// Test some error cases // Test some error cases
Console.WriteLine("Checking retrieval of non-existent file.. ."); Console.WriteLine("Checking retrieval of non-existent file.. .");
bool caughtExpectedException = false; bool caughtExpectedException = false;
try try
{ {
using (Duplicati.Library.Utility.TempFile tempFile = new Duplicati.Library.Utility.TempFile()) using (Duplicati.Library.Utility.TempFile tempFile = new Duplicati.Library.Utility.TempFile())
{ {
backend.Get(string.Format("NonExistentFile-{0}", Gui d.NewGuid()), tempFile.Name); backend.Get(string.Format("NonExistentFile-{0}", Gui d.NewGuid()), tempFile.Name);
} }
} }
catch (FileMissingException ex) catch (FileMissingException)
{ {
Console.WriteLine("Caught expected FileMissingException" ); Console.WriteLine("Caught expected FileMissingException" );
caughtExpectedException = true; caughtExpectedException = true;
} }
catch (Exception ex) catch (Exception ex)
{ {
Console.WriteLine("*** Retrieval of non-existent file fa iled: {0}", ex); Console.WriteLine("*** Retrieval of non-existent file fa iled: {0}", ex);
} }
if (!caughtExpectedException) if (!caughtExpectedException)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)