From f6ff8794291fca376482633b26eaf8101c8cb44d Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 9 Mar 2015 21:26:50 +0700 Subject: Port of TlsTestSuite from Java, and misc. TLS code - Upgrade to NUnit 2.6.4 and adjust various test code --- crypto/test/src/openpgp/examples/test/AllTests.cs | 32 +++++++++++------------ 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'crypto/test/src/openpgp/examples') diff --git a/crypto/test/src/openpgp/examples/test/AllTests.cs b/crypto/test/src/openpgp/examples/test/AllTests.cs index 180d2fa80..e9a7a744d 100644 --- a/crypto/test/src/openpgp/examples/test/AllTests.cs +++ b/crypto/test/src/openpgp/examples/test/AllTests.cs @@ -382,22 +382,20 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Examples.Tests return bRd.ReadLine(); } - public static void Main( - string[] args) - { - //junit.textui.TestRunner.run(suite()); - EventListener el = new NullListener(); - suite().Run(el); - } - - public static TestSuite suite() - { - TestSuite suite = new TestSuite("OpenPGP Example Tests"); - - suite.Add(new AllTests()); - - return suite; - } - + public static void Main(string[] args) + { + Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); + } + + [Suite] + public static TestSuite Suite + { + get + { + TestSuite suite = new TestSuite("OpenPGP Example Tests"); + suite.Add(new AllTests()); + return suite; + } + } } } -- cgit 1.5.1