diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2016-04-29 21:57:06 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2016-04-29 21:57:06 +0700 |
commit | b3056a6deef92017716a40086b2f751460842465 (patch) | |
tree | e33654691c03156310bfb6780cb78edcd32c61a7 /crypto/test/src/util | |
parent | Support GetInstance from byte[] (diff) | |
download | BouncyCastle.NET-ed25519-b3056a6deef92017716a40086b2f751460842465.tar.xz |
Extra test method
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) |