public void ExtractPasswordProtectedZipFilePasswordMismatchShouldThrowException() { var sevenZipWrapper = new SevenZipSharpWrapper(PasswordProtectedSourceZipfileName, @"clean") { ThrowException = true }; sevenZipWrapper.ExtractArchiveTo(_distinationPath); }
public void ExtractPasswordProtectedZipFileTest() { var sevenZipWrapper = new SevenZipSharpWrapper(PasswordProtectedSourceZipfileName, GlobalDefinitions.DefaultInfectedPassword); sevenZipWrapper.ExtractArchiveTo(_distinationPath); var contents = Directory.GetFiles(_distinationPath); Assert.IsTrue(null != contents && contents.Length > 0); }