Skip to content

Commit

Permalink
Merge PR #437: Add a ZipCrypto/7zip interop test to the ZipEncryption…
Browse files Browse the repository at this point in the history
…Handling tests
  • Loading branch information
Numpsy authored and piksel committed Apr 12, 2020
1 parent aa97f8a commit fb93482
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions test/ICSharpCode.SharpZipLib.Tests/Zip/ZipEncryptionHandling.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,31 @@ public class ZipEncryptionHandling
[Test]
[Category("Encryption")]
[Category("Zip")]
public void Aes128Encryption()
[TestCase(CompressionMethod.Stored)]
[TestCase(CompressionMethod.Deflated)]
public void Aes128Encryption(CompressionMethod compressionMethod)
{
CreateZipWithEncryptedEntries("foo", 128);
CreateZipWithEncryptedEntries("foo", 128, compressionMethod);
}

[Test]
[Category("Encryption")]
[Category("Zip")]
public void Aes128EncryptionStored()
[TestCase(CompressionMethod.Stored)]
[TestCase(CompressionMethod.Deflated)]
public void Aes256Encryption(CompressionMethod compressionMethod)
{
CreateZipWithEncryptedEntries("foo", 128, CompressionMethod.Stored);
CreateZipWithEncryptedEntries("foo", 256, compressionMethod);
}

[Test]
[Category("Encryption")]
[Category("Zip")]
public void Aes256Encryption()
[TestCase(CompressionMethod.Stored)]
[TestCase(CompressionMethod.Deflated)]
public void ZipCryptoEncryption(CompressionMethod compressionMethod)
{
CreateZipWithEncryptedEntries("foo", 256);
}

[Test]
[Category("Encryption")]
[Category("Zip")]
public void Aes256EncryptionStored()
{
CreateZipWithEncryptedEntries("foo", 256, CompressionMethod.Stored);
CreateZipWithEncryptedEntries("foo", 0, compressionMethod);
}

[Test]
Expand Down

0 comments on commit fb93482

Please sign in to comment.