diff options
Diffstat (limited to 'crypto/test/src/util')
-rw-r--r-- | crypto/test/src/util/test/SimpleTest.cs | 6 |
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) |