@@ -15,33 +15,31 @@ public class ZipEncryptionHandling
1515 [ Test ]
1616 [ Category ( "Encryption" ) ]
1717 [ Category ( "Zip" ) ]
18- public void Aes128Encryption ( )
18+ [ TestCase ( CompressionMethod . Stored ) ]
19+ [ TestCase ( CompressionMethod . Deflated ) ]
20+ public void Aes128Encryption ( CompressionMethod compressionMethod )
1921 {
20- CreateZipWithEncryptedEntries ( "foo" , 128 ) ;
22+ CreateZipWithEncryptedEntries ( "foo" , 128 , compressionMethod ) ;
2123 }
2224
2325 [ Test ]
2426 [ Category ( "Encryption" ) ]
2527 [ Category ( "Zip" ) ]
26- public void Aes128EncryptionStored ( )
28+ [ TestCase ( CompressionMethod . Stored ) ]
29+ [ TestCase ( CompressionMethod . Deflated ) ]
30+ public void Aes256Encryption ( CompressionMethod compressionMethod )
2731 {
28- CreateZipWithEncryptedEntries ( "foo" , 128 , CompressionMethod . Stored ) ;
32+ CreateZipWithEncryptedEntries ( "foo" , 256 , compressionMethod ) ;
2933 }
3034
3135 [ Test ]
3236 [ Category ( "Encryption" ) ]
3337 [ Category ( "Zip" ) ]
34- public void Aes256Encryption ( )
38+ [ TestCase ( CompressionMethod . Stored ) ]
39+ [ TestCase ( CompressionMethod . Deflated ) ]
40+ public void ZipCryptoEncryption ( CompressionMethod compressionMethod )
3541 {
36- CreateZipWithEncryptedEntries ( "foo" , 256 ) ;
37- }
38-
39- [ Test ]
40- [ Category ( "Encryption" ) ]
41- [ Category ( "Zip" ) ]
42- public void Aes256EncryptionStored ( )
43- {
44- CreateZipWithEncryptedEntries ( "foo" , 256 , CompressionMethod . Stored ) ;
42+ CreateZipWithEncryptedEntries ( "foo" , 0 , compressionMethod ) ;
4543 }
4644
4745 [ Test ]
0 commit comments