From b3056a6deef92017716a40086b2f751460842465 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 29 Apr 2016 21:57:06 +0700 Subject: Extra test method --- crypto/test/src/util/test/SimpleTest.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crypto') 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) -- cgit 1.5.1