summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2022-07-13 06:47:35 +1000
committerDavid Hook <dgh@cryptoworkshop.com>2022-07-13 06:47:35 +1000
commit757b1cdde860c49cc9c09683e5cc3886581876b0 (patch)
treef8e08f230bebaf3ed4d1a275af970dec256d62ae
parentMerge remote-tracking branch 'refs/remotes/origin/master' (diff)
downloadBouncyCastle.NET-ed25519-757b1cdde860c49cc9c09683e5cc3886581876b0.tar.xz
instrumented test classes
-rw-r--r--crypto/test/src/crypto/test/Haraka256DigestTest.cs14
-rw-r--r--crypto/test/src/crypto/test/Haraka512DigestTest.cs9
2 files changed, 17 insertions, 6 deletions
diff --git a/crypto/test/src/crypto/test/Haraka256DigestTest.cs b/crypto/test/src/crypto/test/Haraka256DigestTest.cs
index 7b8154d4c..f3a5e8ffe 100644
--- a/crypto/test/src/crypto/test/Haraka256DigestTest.cs
+++ b/crypto/test/src/crypto/test/Haraka256DigestTest.cs
@@ -8,6 +8,7 @@ using Org.BouncyCastle.Utilities.Test;
 
 namespace BouncyCastle.Crypto.Tests
 {
+    [TestFixture]
     public class Haraka256DigestTest : SimpleTest
     {
         public override string Name
@@ -186,11 +187,12 @@ namespace BouncyCastle.Crypto.Tests
             TestMonty();
         }
 
-        //public static void Main()
-        //{
-        //    //runTest(new Haraka256DigestTest());
-        //    var t = new Haraka256DigestTest();
-        //    t.PerformTest();
-        //}
+        [Test]
+        public void TestFunction()
+        {
+            string resultText = Perform().ToString();
+
+            Assert.AreEqual(Name + ": Okay", resultText);
+        }
     }
 }
\ No newline at end of file
diff --git a/crypto/test/src/crypto/test/Haraka512DigestTest.cs b/crypto/test/src/crypto/test/Haraka512DigestTest.cs
index 634b20724..822d54879 100644
--- a/crypto/test/src/crypto/test/Haraka512DigestTest.cs
+++ b/crypto/test/src/crypto/test/Haraka512DigestTest.cs
@@ -8,6 +8,7 @@ using Org.BouncyCastle.Utilities.Test;
 
 namespace BouncyCastle.Crypto.Tests
 {
+    [TestFixture]
     public class Haraka512DigestTest : SimpleTest
     {
         public override string Name
@@ -188,5 +189,13 @@ namespace BouncyCastle.Crypto.Tests
             TestOutput();
             TestMonty();
         }
+
+        [Test]
+        public void TestFunction()
+        {
+            string resultText = Perform().ToString();
+
+            Assert.AreEqual(Name + ": Okay", resultText);
+        }
     }
 }
\ No newline at end of file