public void NullOutputFile() { //arrange var zip = new PasswordProtectedZip("hello"); //act var compressed = zip.Compress(_testFilePath, null); }
public void EmptyFilesList() { //arrange var zip = new PasswordProtectedZip("hello"); //act var compressed = zip.Compress(new List <FileInfo>(), _outputfile); //assert Assert.IsTrue(compressed.IsEmpty); }
public void SucessfullyZipped() { //arrange var zip = new PasswordProtectedZip("hello"); //act var compressed = zip.Compress(_testFilePath, _outputfile); //assert File.Exists(compressed.Single().FullName); }