summary refs log tree commit diff
path: root/crypto/test/src/openpgp
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@gmail.com>2022-06-23 00:53:42 +0700
committerPeter Dettman <peter.dettman@gmail.com>2022-06-23 00:53:42 +0700
commit190e35a8bb474f5429ee23489b270fc7c7cddf5b (patch)
treef08100e079ca56df93eeb0753b53325c3d7bb0d3 /crypto/test/src/openpgp
parentWarnings cleanup (diff)
downloadBouncyCastle.NET-ed25519-190e35a8bb474f5429ee23489b270fc7c7cddf5b.tar.xz
Remove Main methods from test classes
Diffstat (limited to 'crypto/test/src/openpgp')
-rw-r--r--crypto/test/src/openpgp/examples/test/AllTests.cs5
-rw-r--r--crypto/test/src/openpgp/test/ArmoredInputStreamTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/IgnoreMarkerPacketInCertificatesTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PGPArmoredTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PGPCompressionTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs6
-rw-r--r--crypto/test/src/openpgp/test/PGPDSATest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PGPPBETest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PGPPacketTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PGPRSATest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PGPSignatureTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PgpECDHTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PgpECDsaTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PgpECMessageTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PgpFeaturesTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PgpKeyRingTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PgpMarkerTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PgpParsingTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PgpSignatureInvalidVersionIgnoredTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/PgpUnicodeTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/RegressionTest.cs8
23 files changed, 0 insertions, 119 deletions
diff --git a/crypto/test/src/openpgp/examples/test/AllTests.cs b/crypto/test/src/openpgp/examples/test/AllTests.cs
index 3403a4fdc..809870cb5 100644
--- a/crypto/test/src/openpgp/examples/test/AllTests.cs
+++ b/crypto/test/src/openpgp/examples/test/AllTests.cs
@@ -418,11 +418,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Examples.Tests
 			return bRd.ReadLine();
 		}
 
-        public static void Main(string[] args)
-        {
-            Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty);
-        }
-
         [Suite]
         public static TestSuite Suite
         {
diff --git a/crypto/test/src/openpgp/test/ArmoredInputStreamTest.cs b/crypto/test/src/openpgp/test/ArmoredInputStreamTest.cs
index 375d4ef1c..074b655bb 100644
--- a/crypto/test/src/openpgp/test/ArmoredInputStreamTest.cs
+++ b/crypto/test/src/openpgp/test/ArmoredInputStreamTest.cs
@@ -403,11 +403,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             }
         }
 
-        public static void Main(string[] args)
-        {
-            RunTest(new ArmoredInputStreamTest());
-        }
-
         [Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/IgnoreMarkerPacketInCertificatesTest.cs b/crypto/test/src/openpgp/test/IgnoreMarkerPacketInCertificatesTest.cs
index 1de5f8b19..7b845d077 100644
--- a/crypto/test/src/openpgp/test/IgnoreMarkerPacketInCertificatesTest.cs
+++ b/crypto/test/src/openpgp/test/IgnoreMarkerPacketInCertificatesTest.cs
@@ -86,11 +86,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             IsEquals(1, Count(signatures));
         }
 
-		public static void Main(string[] args)
-		{
-			RunTest(new IgnoreMarkerPacketInCertificatesTest());
-		}
-
 		[Test]
 		public void TestFunction()
 		{
diff --git a/crypto/test/src/openpgp/test/PGPArmoredTest.cs b/crypto/test/src/openpgp/test/PGPArmoredTest.cs
index 1f1cbf3c3..9fe5da6ed 100644
--- a/crypto/test/src/openpgp/test/PGPArmoredTest.cs
+++ b/crypto/test/src/openpgp/test/PGPArmoredTest.cs
@@ -295,11 +295,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
 			get { return "PgpArmoredTest"; }
 		}
 
-		public static void Main(string[] args)
-		{
-			RunTest(new PgpArmoredTest());
-		}
-
 		[Test]
 		public void TestFunction()
 		{
diff --git a/crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs b/crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs
index 6ed632a00..98762fab1 100644
--- a/crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs
+++ b/crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs
@@ -428,11 +428,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
 			generateTest(crNlMessage, "\\r\\n");
 		}
 
-		public static void Main(string[] args)
-		{
-			RunTest(new PgpClearSignedSignatureTest());
-		}
-
 		[Test]
 		public void TestFunction()
 		{
diff --git a/crypto/test/src/openpgp/test/PGPCompressionTest.cs b/crypto/test/src/openpgp/test/PGPCompressionTest.cs
index 4a8df30e1..456cf1537 100644
--- a/crypto/test/src/openpgp/test/PGPCompressionTest.cs
+++ b/crypto/test/src/openpgp/test/PGPCompressionTest.cs
@@ -118,10 +118,5 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
 		{
 			get { return "PgpCompressionTest"; }
 		}
-
-		public static void Main(string[] args)
-		{
-			RunTest(new PgpCompressionTest());
-		}
 	}
 }
diff --git a/crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs b/crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs
index cd10a3ffe..1b1f5b6db 100644
--- a/crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs
+++ b/crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs
@@ -474,12 +474,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
 			get { return "PgpDsaElGamalTest"; }
 		}
 
-		public static void Main(
-			string[] args)
-		{
-			RunTest(new PgpDsaElGamalTest());
-		}
-
 		[Test]
 		public void TestFunction()
 		{
diff --git a/crypto/test/src/openpgp/test/PGPDSATest.cs b/crypto/test/src/openpgp/test/PGPDSATest.cs
index b99fe2354..104f5d494 100644
--- a/crypto/test/src/openpgp/test/PGPDSATest.cs
+++ b/crypto/test/src/openpgp/test/PGPDSATest.cs
@@ -580,11 +580,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
 			get { return "PgpDsaTest"; }
         }
 
-		public static void Main(string[] args)
-        {
-			RunTest(new PgpDsaTest());
-        }
-
 		[Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs b/crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs
index 3006aeb3e..be93d3d64 100644
--- a/crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs
+++ b/crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs
@@ -151,11 +151,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             get { return "PgpNoPrivateKeyTest"; }
         }
 
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpNoPrivateKeyTest());
-        }
-
         [Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PGPPBETest.cs b/crypto/test/src/openpgp/test/PGPPBETest.cs
index 43016465e..df40e1ef2 100644
--- a/crypto/test/src/openpgp/test/PGPPBETest.cs
+++ b/crypto/test/src/openpgp/test/PGPPBETest.cs
@@ -367,11 +367,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
 			get { return "PgpPbeTest"; }
         }
 
-		public static void Main(string[] args)
-        {
-			RunTest(new PgpPbeTest());
-        }
-
 		[Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PGPPacketTest.cs b/crypto/test/src/openpgp/test/PGPPacketTest.cs
index 9c5e8239f..f2b523d04 100644
--- a/crypto/test/src/openpgp/test/PGPPacketTest.cs
+++ b/crypto/test/src/openpgp/test/PGPPacketTest.cs
@@ -63,11 +63,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
 			get { return "PgpPacketTest"; }
         }
 
-		public static void Main(string[] args)
-        {
-			RunTest(new PgpPacketTest());
-        }
-
 		[Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PGPRSATest.cs b/crypto/test/src/openpgp/test/PGPRSATest.cs
index 250fe6143..534fb8c5d 100644
--- a/crypto/test/src/openpgp/test/PGPRSATest.cs
+++ b/crypto/test/src/openpgp/test/PGPRSATest.cs
@@ -1215,11 +1215,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             get { return "PgpRsaTest"; }
         }
 
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpRsaTest());
-        }
-
         [Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PGPSignatureTest.cs b/crypto/test/src/openpgp/test/PGPSignatureTest.cs
index b836fe236..e43eb5d8a 100644
--- a/crypto/test/src/openpgp/test/PGPSignatureTest.cs
+++ b/crypto/test/src/openpgp/test/PGPSignatureTest.cs
@@ -1069,11 +1069,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             get { return "PgpSignatureTest"; }
         }
 
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpSignatureTest());
-        }
-
         [Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PgpECDHTest.cs b/crypto/test/src/openpgp/test/PgpECDHTest.cs
index 94ab2a755..711d917a7 100644
--- a/crypto/test/src/openpgp/test/PgpECDHTest.cs
+++ b/crypto/test/src/openpgp/test/PgpECDHTest.cs
@@ -261,11 +261,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             get { return "PgpECDHTest"; }
         }
 
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpECDHTest());
-        }
-
         [Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PgpECDsaTest.cs b/crypto/test/src/openpgp/test/PgpECDsaTest.cs
index c06532080..35e9a2332 100644
--- a/crypto/test/src/openpgp/test/PgpECDsaTest.cs
+++ b/crypto/test/src/openpgp/test/PgpECDsaTest.cs
@@ -188,11 +188,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             get { return "PgpECDsaTest"; }
         }
 
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpECDsaTest());
-        }
-
         [Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PgpECMessageTest.cs b/crypto/test/src/openpgp/test/PgpECMessageTest.cs
index 8f6111c9b..0d3cb3325 100644
--- a/crypto/test/src/openpgp/test/PgpECMessageTest.cs
+++ b/crypto/test/src/openpgp/test/PgpECMessageTest.cs
@@ -179,11 +179,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             get { return "PgpECMessageTest"; }
         }
 
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpECMessageTest());
-        }
-
         [Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PgpFeaturesTest.cs b/crypto/test/src/openpgp/test/PgpFeaturesTest.cs
index 162c3f093..57f6052e9 100644
--- a/crypto/test/src/openpgp/test/PgpFeaturesTest.cs
+++ b/crypto/test/src/openpgp/test/PgpFeaturesTest.cs
@@ -43,11 +43,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             get { return "PgpFeaturesTest"; }
         }
 
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpFeaturesTest());
-        }
-
         [Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PgpKeyRingTest.cs b/crypto/test/src/openpgp/test/PgpKeyRingTest.cs
index 765b54392..efc47f881 100644
--- a/crypto/test/src/openpgp/test/PgpKeyRingTest.cs
+++ b/crypto/test/src/openpgp/test/PgpKeyRingTest.cs
@@ -2643,10 +2643,5 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
         {
             get { return "PgpKeyRingTest"; }
         }
-
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpKeyRingTest());
-        }
     }
 }
diff --git a/crypto/test/src/openpgp/test/PgpMarkerTest.cs b/crypto/test/src/openpgp/test/PgpMarkerTest.cs
index 929be6d73..5a9e5d1cd 100644
--- a/crypto/test/src/openpgp/test/PgpMarkerTest.cs
+++ b/crypto/test/src/openpgp/test/PgpMarkerTest.cs
@@ -84,11 +84,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
 			get { return "PgpMarkerTest"; }
         }
 
-		public static void Main(string[] args)
-        {
-            RunTest(new PgpMarkerTest());
-        }
-
 		[Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PgpParsingTest.cs b/crypto/test/src/openpgp/test/PgpParsingTest.cs
index 6a5688484..a9618f659 100644
--- a/crypto/test/src/openpgp/test/PgpParsingTest.cs
+++ b/crypto/test/src/openpgp/test/PgpParsingTest.cs
@@ -23,11 +23,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
 			get { return "PgpParsingTest"; }
 		}
 
-        public static void Main(string[] args)
-		{
-			RunTest(new PgpParsingTest());
-		}
-
         [Test]
 		public void TestFunction()
 		{
diff --git a/crypto/test/src/openpgp/test/PgpSignatureInvalidVersionIgnoredTest.cs b/crypto/test/src/openpgp/test/PgpSignatureInvalidVersionIgnoredTest.cs
index 873ddf147..1cd1385ba 100644
--- a/crypto/test/src/openpgp/test/PgpSignatureInvalidVersionIgnoredTest.cs
+++ b/crypto/test/src/openpgp/test/PgpSignatureInvalidVersionIgnoredTest.cs
@@ -84,11 +84,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             AssertInvalidSignatureVersionIsIgnored(SIG23SIG4);
         }
 
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpSignatureInvalidVersionIgnoredTest());
-        }
-
         [Test]
         public void TestFunction()
         {
diff --git a/crypto/test/src/openpgp/test/PgpUnicodeTest.cs b/crypto/test/src/openpgp/test/PgpUnicodeTest.cs
index afc0d1cbc..c5d983149 100644
--- a/crypto/test/src/openpgp/test/PgpUnicodeTest.cs
+++ b/crypto/test/src/openpgp/test/PgpUnicodeTest.cs
@@ -134,10 +134,5 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             TestCyrillicPassphrase();
             TestUmlautPassphrase();
         }
-
-        public static void Main(string[] args)
-        {
-            RunTest(new PgpUnicodeTest());
-        }
     }
 }
diff --git a/crypto/test/src/openpgp/test/RegressionTest.cs b/crypto/test/src/openpgp/test/RegressionTest.cs
index a6a7edf5f..65c40b3f9 100644
--- a/crypto/test/src/openpgp/test/RegressionTest.cs
+++ b/crypto/test/src/openpgp/test/RegressionTest.cs
@@ -29,13 +29,5 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests
             new PgpSignatureInvalidVersionIgnoredTest(),
             new PgpSignatureTest(),
         };
-
-        public static void Main(string[] args)
-        {
-            foreach (ITest test in tests)
-            {
-                SimpleTest.RunTest(test);
-            }
-        }
     }
 }