Skip to content

Commit

Permalink
Added Tests and supporting Files.
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonJ committed Jul 23, 2024
1 parent 84fb99c commit 3545693
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 8 deletions.
51 changes: 43 additions & 8 deletions tests/SharpCompress.Test/Zip/ZipArchiveTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ public class ZipArchiveTests : ArchiveTests
{
public ZipArchiveTests() => UseExtensionInsteadOfNameToVerify = true;

[Fact]
public void Zip_Shrink_ArchiveStreamRead()
{
UseExtensionInsteadOfNameToVerify = true;
UseCaseInsensitiveToVerify = true;
ArchiveStreamRead("Zip.shrink.zip");
}


[Fact]
public void Zip_ZipX_ArchiveStreamRead() => ArchiveStreamRead("Zip.zipx");

Expand Down Expand Up @@ -183,6 +176,48 @@ public void Zip_InfoZip_Multi_ArchiveFileRead() =>
[Fact]
public void Zip_Zip64_ArchiveFileRead() => ArchiveFileRead("Zip.zip64.zip");

[Fact]
public void Zip_Shrink_ArchiveStreamRead()
{
UseExtensionInsteadOfNameToVerify = true;
UseCaseInsensitiveToVerify = true;
ArchiveStreamRead("Zip.shrink.zip");
}
[Fact]
public void Zip_Implode_ArchiveStreamRead()
{
UseExtensionInsteadOfNameToVerify = true;
UseCaseInsensitiveToVerify = true;
ArchiveStreamRead("Zip.implode.zip");
}
[Fact]
public void Zip_Reduce1_ArchiveStreamRead()
{
UseExtensionInsteadOfNameToVerify = true;
UseCaseInsensitiveToVerify = true;
ArchiveStreamRead("Zip.reduce1.zip");
}
[Fact]
public void Zip_Reduce2_ArchiveStreamRead()
{
UseExtensionInsteadOfNameToVerify = true;
UseCaseInsensitiveToVerify = true;
ArchiveStreamRead("Zip.reduce2.zip");
}
[Fact]
public void Zip_Reduce3_ArchiveStreamRead()
{
UseExtensionInsteadOfNameToVerify = true;
UseCaseInsensitiveToVerify = true;
ArchiveStreamRead("Zip.reduce3.zip");
}
[Fact]
public void Zip_Reduce4_ArchiveStreamRead()
{
UseExtensionInsteadOfNameToVerify = true;
UseCaseInsensitiveToVerify = true;
ArchiveStreamRead("Zip.reduce4.zip");
}
[Fact]
public void Zip_Random_Write_Remove()
{
Expand Down
Binary file added tests/TestArchives/Archives/Zip.implode.zip
Binary file not shown.
Binary file added tests/TestArchives/Archives/Zip.reduce1.zip
Binary file not shown.
Binary file added tests/TestArchives/Archives/Zip.reduce2.zip
Binary file not shown.
Binary file added tests/TestArchives/Archives/Zip.reduce3.zip
Binary file not shown.
Binary file added tests/TestArchives/Archives/Zip.reduce4.zip
Binary file not shown.

0 comments on commit 3545693

Please sign in to comment.