コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public void ZipWriteOnlyStorer_AddDataNull_ValidateNotNull()
        {
            var storer = new ZipWriteOnlyStorer(false, true);

            AssertValidation.NotNull(
                () => storer.Add("File.data", null),
                "Data");
        }
コード例 #4
0
        public void ZipWriteOnlyStorer_AddPathNull_ValidateNotNull()
        {
            var storer = new ZipWriteOnlyStorer(false, true);

            AssertValidation.NotNull(
                () => storer.Add(null, 0, 0),
                "Path");
        }
コード例 #5
0
        public void Zip64WriteOnlyStorer_DeflateOneFile_Zip64OneEntry()
        {
            ZipWriteOnlyStorer storer = new ZipWriteOnlyStorer(true, true);

            storer.Add(filePath1, fileData);

            ZipWriteOnlyStorer_ZipDataEquality_Test(zip64OneFileDeflate, storer.Close(), 1);
        }
コード例 #6
0
        public void Zip32WriteOnlyStorer_StoreOneFile_Zip32OneEntry()
        {
            ZipWriteOnlyStorer storer = new ZipWriteOnlyStorer(false, false);

            storer.Add(filePath1, fileData);

            ZipWriteOnlyStorer_ZipDataEquality_Test(zip32OneFileStore, storer.Close(), 1);
        }