Exemple #1
0
 public void Decrypt_throws_on_unsupported_sha1_kdf()
 {
     Assert.That(DecryptPad("gsencst1\x00" + "\x01"),
                 ExceptionsTest.ThrowsUnsupportedFeatureWithMessage("SHA-1"));
 }
Exemple #2
0
 public void Parse_throws_unencrypted_content()
 {
     Assert.That(ParsePad("onefile1" + "\x05"),
                 ExceptionsTest.ThrowsUnsupportedFeatureWithMessage("Unencrypted"));
 }