summary refs log tree commit diff
path: root/crypto/test/src/util
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2016-04-29 21:57:06 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2016-04-29 21:57:06 +0700
commitb3056a6deef92017716a40086b2f751460842465 (patch)
treee33654691c03156310bfb6780cb78edcd32c61a7 /crypto/test/src/util
parentSupport GetInstance from byte[] (diff)
downloadBouncyCastle.NET-ed25519-b3056a6deef92017716a40086b2f751460842465.tar.xz
Extra test method
Diffstat (limited to 'crypto/test/src/util')
-rw-r--r--crypto/test/src/util/test/SimpleTest.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/test/src/util/test/SimpleTest.cs b/crypto/test/src/util/test/SimpleTest.cs
index bf6c8fb92..fea680832 100644
--- a/crypto/test/src/util/test/SimpleTest.cs
+++ b/crypto/test/src/util/test/SimpleTest.cs
@@ -27,6 +27,12 @@ namespace Org.BouncyCastle.Utilities.Test
             throw new TestFailedException(SimpleTestResult.Failed(this, message));
         }
 
+        internal void IsTrue(string message, bool value)
+        {
+            if (!value)
+                throw new TestFailedException(SimpleTestResult.Failed(this, message));
+        }
+
         internal void Fail(
             string		message,
             Exception	throwable)