public void Zip64WriteOnlyStorer_DeflateTwoFiles_Zip64TwoEntries() { ZipWriteOnlyStorer storer = new ZipWriteOnlyStorer(true, true); storer.Add(filePath1, fileData); storer.Add(filePath2, fileData); ZipWriteOnlyStorer_ZipDataEquality_Test(zip64TwoFilesDeflate, storer.Close(), 2); }
public void Zip32WriteOnlyStorer_StoreTwoFiles_Zip32TwoEntries() { ZipWriteOnlyStorer storer = new ZipWriteOnlyStorer(false, false); storer.Add(filePath1, fileData); storer.Add(filePath2, fileData); ZipWriteOnlyStorer_ZipDataEquality_Test(zip32TwoFilesStore, storer.Close(), 2); }
public void ZipWriteOnlyStorer_AddDataNull_ValidateNotNull() { var storer = new ZipWriteOnlyStorer(false, true); AssertValidation.NotNull( () => storer.Add("File.data", null), "Data"); }
public void ZipWriteOnlyStorer_AddPathNull_ValidateNotNull() { var storer = new ZipWriteOnlyStorer(false, true); AssertValidation.NotNull( () => storer.Add(null, 0, 0), "Path"); }
public void Zip64WriteOnlyStorer_DeflateOneFile_Zip64OneEntry() { ZipWriteOnlyStorer storer = new ZipWriteOnlyStorer(true, true); storer.Add(filePath1, fileData); ZipWriteOnlyStorer_ZipDataEquality_Test(zip64OneFileDeflate, storer.Close(), 1); }
public void Zip32WriteOnlyStorer_StoreOneFile_Zip32OneEntry() { ZipWriteOnlyStorer storer = new ZipWriteOnlyStorer(false, false); storer.Add(filePath1, fileData); ZipWriteOnlyStorer_ZipDataEquality_Test(zip32OneFileStore, storer.Close(), 1); }