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
|