QBackupTests/Tests.cs
/// <summary>
/// Compress, extract and validate backups.
/// </summary>
/// <param name="src_dir"></param>
Compress, extract and validate backups.
Compress extract and validate backups .
public static void TestArchivingAndExtraction()
        {
            var log = new LogLines();
            var t = new TestDir(InputDir);
            t.Create();
            var src = AnalyzedBackup.Create(t.Dirs[0], true, log);
            var archived_dir = src.Compress(OutputDir, Password, 256, log);
            var archived = ArchivedBackup.CreateFromPath(archived_dir, Password, log);
            QAssert.AreEqual(src, archived);
            var extracted_dir = archived.Extract(ExtractedDir, Password, log);
            var extracted = AnalyzedBackup.Create(extracted_dir, true, log);
            QAssert.AreEqual(src, extracted);
            Directory.Delete(archived_dir.Path, true);
            Directory.Delete(extracted_dir.Path, true);
        }
public static void TestArchivingAndExtraction ( ) { var log = new LogLines ( ) ; var t = new TestDir ( InputDir ) ; t . Create ( ) ; var src = AnalyzedBackup . Create ( t . Dirs [ 0 ] , true , log ) ; var archived_dir = src . Compress ( OutputDir , Password , 256 , log ) ; var archived = ArchivedBackup . CreateFromPath ( archived_dir , Password , log ) ; QAssert . AreEqual ( src , archived ) ; var extracted_dir = archived . Extract ( ExtractedDir , Password , log ) ; var extracted = AnalyzedBackup . Create ( extracted_dir , true , log ) ; QAssert . AreEqual ( src , extracted ) ; Directory . Delete ( archived_dir . Path , true ) ; Directory . Delete ( extracted_dir . Path , true ) ; }
Compress, extract and validate backups.
Compress extract and validate backups .
src_dir
None