diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-03-09 21:26:50 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-03-09 21:26:50 +0700 |
commit | f6ff8794291fca376482633b26eaf8101c8cb44d (patch) | |
tree | b584b39ea53767ae0fe1d9cb4043ca90c2623b0d /crypto/test/src/tsp | |
parent | Remove extraneous class reference (diff) | |
download | BouncyCastle.NET-ed25519-f6ff8794291fca376482633b26eaf8101c8cb44d.tar.xz |
Port of TlsTestSuite from Java, and misc. TLS code
- Upgrade to NUnit 2.6.4 and adjust various test code
Diffstat (limited to 'crypto/test/src/tsp')
-rw-r--r-- | crypto/test/src/tsp/test/AllTests.cs | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/crypto/test/src/tsp/test/AllTests.cs b/crypto/test/src/tsp/test/AllTests.cs index 66dc9c480..3e8b0cd5e 100644 --- a/crypto/test/src/tsp/test/AllTests.cs +++ b/crypto/test/src/tsp/test/AllTests.cs @@ -9,24 +9,23 @@ namespace Org.BouncyCastle.Tsp.Tests { public class AllTests { - public static void Main( - string[] args) + public static void Main(string[] args) { - //junit.textui.TestRunner.run(suite()); - EventListener el = new NullListener(); - suite().Run(el); + Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } - public static TestSuite suite() + [Suite] + public static TestSuite Suite { - TestSuite suite = new TestSuite("TSP Tests"); - - suite.Add(new GenTimeAccuracyUnitTest()); - suite.Add(new ParseTest()); - suite.Add(new TimeStampTokenInfoUnitTest()); - suite.Add(new TspTest()); - - return suite; + get + { + TestSuite suite = new TestSuite("TSP Tests"); + suite.Add(new GenTimeAccuracyUnitTest()); + suite.Add(new ParseTest()); + suite.Add(new TimeStampTokenInfoUnitTest()); + suite.Add(new TspTest()); + return suite; + } } } } |