Пример #1
0
        public void ExtractPasswordProtectedZipFilePasswordMismatchShouldThrowException()
        {
            var sevenZipWrapper = new SevenZipSharpWrapper(PasswordProtectedSourceZipfileName, @"clean")
            {
                ThrowException = true
            };

            sevenZipWrapper.ExtractArchiveTo(_distinationPath);
        }
Пример #2
0
        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);
        }