From 757b1cdde860c49cc9c09683e5cc3886581876b0 Mon Sep 17 00:00:00 2001 From: David Hook Date: Wed, 13 Jul 2022 06:47:35 +1000 Subject: instrumented test classes --- crypto/test/src/crypto/test/Haraka256DigestTest.cs | 14 ++++++++------ crypto/test/src/crypto/test/Haraka512DigestTest.cs | 9 +++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) (limited to 'crypto') 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 -- cgit 1.4.1