summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-01-30 15:46:27 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-01-30 15:46:27 +0700
commitd20048a06d854bcbddcbd94eeb7d39c78d50e9ea (patch)
tree349d517c6d225e3776fc45a28b7c5724a0007e34
parentMicrosoft.NET.Test.Sdk 17.4.1 (diff)
downloadBouncyCastle.NET-ed25519-d20048a06d854bcbddcbd94eeb7d39c78d50e9ea.tar.xz
Add missing failure reports (no bug)
-rw-r--r--crypto/test/src/test/HMacTest.cs22
1 files changed, 3 insertions, 19 deletions
diff --git a/crypto/test/src/test/HMacTest.cs b/crypto/test/src/test/HMacTest.cs
index 3d6f721ba..e6fc07599 100644
--- a/crypto/test/src/test/HMacTest.cs
+++ b/crypto/test/src/test/HMacTest.cs
@@ -116,16 +116,13 @@ namespace Org.BouncyCastle.Tests
             IMac mac = MacUtilities.GetMac("HmacSHA1");
 
             byte [] b = {(byte)1, (byte)2, (byte)3, (byte)4, (byte)5};
-//			KeyParameter sks = new KeyParameter(b); //, "HmacSHA1");
-//			RC5ParameterSpec algPS = new RC5ParameterSpec(100, 100, 100);
             RC5Parameters rc5Parameters = new RC5Parameters(b, 100);
 
             try
             {
-//				mac.Init(sks, algPS);
                 mac.Init(rc5Parameters);
+                Fail("No exception thrown");
             }
-//			catch (InvalidAlgorithmParameterException e)
             catch (Exception)
             {
                 // ignore okay
@@ -133,26 +130,13 @@ namespace Org.BouncyCastle.Tests
 
             try
             {
-                mac.Init(null); //, null);
+                mac.Init(null);
+                Fail("No exception thrown");
             }
-//			catch (InvalidKeyException)
-//			{
-//				// ignore okay
-//			}
-//			catch (InvalidAlgorithmParameterException e)
             catch (Exception)
             {
                 // ignore okay
             }
-
-//			try
-//			{
-//				mac.Init(null);
-//			}
-//			catch (InvalidKeyException)
-//			{
-//				// ignore okay
-//			}
         }
 
         public override void PerformTest()