diff options
author | David Hook <dgh@cryptoworkshop.com> | 2022-07-13 06:47:35 +1000 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2022-07-13 06:47:35 +1000 |
commit | 757b1cdde860c49cc9c09683e5cc3886581876b0 (patch) | |
tree | f8e08f230bebaf3ed4d1a275af970dec256d62ae /crypto/test/src | |
parent | Merge remote-tracking branch 'refs/remotes/origin/master' (diff) | |
download | BouncyCastle.NET-ed25519-757b1cdde860c49cc9c09683e5cc3886581876b0.tar.xz |
instrumented test classes
Diffstat (limited to 'crypto/test/src')
-rw-r--r-- | crypto/test/src/crypto/test/Haraka256DigestTest.cs | 14 | ||||
-rw-r--r-- | crypto/test/src/crypto/test/Haraka512DigestTest.cs | 9 |
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 |