diff --git a/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs b/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs
index ac4ff9809..f60961c8b 100644
--- a/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs
+++ b/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs
@@ -59,12 +59,13 @@ namespace Org.BouncyCastle.Asn1.Tests
{
checkMandatoryField("information", information, syntax.Information);
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new AdditionalInformationSyntaxUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs b/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs
index 59464d212..e589b907b 100644
--- a/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs
+++ b/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs
@@ -82,11 +82,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new AdmissionSyntaxUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/AdmissionsUnitTest.cs b/crypto/test/src/asn1/test/AdmissionsUnitTest.cs
index edefeb830..b5ef094dd 100644
--- a/crypto/test/src/asn1/test/AdmissionsUnitTest.cs
+++ b/crypto/test/src/asn1/test/AdmissionsUnitTest.cs
@@ -72,12 +72,13 @@ namespace Org.BouncyCastle.Asn1.Tests
checkMandatoryField("admissionAuthority", name, admissions.AdmissionAuthority);
checkMandatoryField("namingAuthority", auth, admissions.NamingAuthority);
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new AdmissionsUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/AllTests.cs b/crypto/test/src/asn1/test/AllTests.cs
index 981b5a4df..7076b8d5f 100644
--- a/crypto/test/src/asn1/test/AllTests.cs
+++ b/crypto/test/src/asn1/test/AllTests.cs
@@ -8,7 +8,7 @@ namespace Org.BouncyCastle.Asn1.Tests
{
public class AllTests
{
- public static void Main(string[] args)
+ public static void MainOld(string[] args)
{
Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty);
}
diff --git a/crypto/test/src/asn1/test/AttributeTableUnitTest.cs b/crypto/test/src/asn1/test/AttributeTableUnitTest.cs
index 5dcf349cc..2321ba8bc 100644
--- a/crypto/test/src/asn1/test/AttributeTableUnitTest.cs
+++ b/crypto/test/src/asn1/test/AttributeTableUnitTest.cs
@@ -134,11 +134,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new AttributeTableUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/BiometricDataUnitTest.cs b/crypto/test/src/asn1/test/BiometricDataUnitTest.cs
index a542f71af..964689c52 100644
--- a/crypto/test/src/asn1/test/BiometricDataUnitTest.cs
+++ b/crypto/test/src/asn1/test/BiometricDataUnitTest.cs
@@ -116,11 +116,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ #if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new BiometricDataUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/BitStringTest.cs b/crypto/test/src/asn1/test/BitStringTest.cs
index 35b7811bc..5225bb3be 100644
--- a/crypto/test/src/asn1/test/BitStringTest.cs
+++ b/crypto/test/src/asn1/test/BitStringTest.cs
@@ -159,11 +159,13 @@ namespace Org.BouncyCastle.Asn1.Tests
get { return "BitString"; }
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new BitStringTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/CMSTest.cs b/crypto/test/src/asn1/test/CMSTest.cs
index 1afb363af..f5977da71 100644
--- a/crypto/test/src/asn1/test/CMSTest.cs
+++ b/crypto/test/src/asn1/test/CMSTest.cs
@@ -286,7 +286,8 @@ namespace Org.BouncyCastle.Asn1.Tests
get { return "CMS"; }
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
ITest test = new CmsTest();
@@ -294,6 +295,7 @@ namespace Org.BouncyCastle.Asn1.Tests
Console.WriteLine(result);
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/CertHashUnitTest.cs b/crypto/test/src/asn1/test/CertHashUnitTest.cs
index 1e271a9c0..9ac5805d3 100644
--- a/crypto/test/src/asn1/test/CertHashUnitTest.cs
+++ b/crypto/test/src/asn1/test/CertHashUnitTest.cs
@@ -76,11 +76,13 @@ namespace Org.BouncyCastle.Asn1.Tests
checkMandatoryField("certificateHash", digest, certHash.CertificateHash);
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new CertHashUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/CertificateTest.cs b/crypto/test/src/asn1/test/CertificateTest.cs
index 7fcb1fffa..e4effc4a6 100644
--- a/crypto/test/src/asn1/test/CertificateTest.cs
+++ b/crypto/test/src/asn1/test/CertificateTest.cs
@@ -378,11 +378,13 @@ namespace Org.BouncyCastle.Asn1.Tests
CheckAttributeCertificate(8, cert8);
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new CertificateTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/CommitmentTypeIndicationUnitTest.cs b/crypto/test/src/asn1/test/CommitmentTypeIndicationUnitTest.cs
index 20c2d18e3..2ecb3f440 100644
--- a/crypto/test/src/asn1/test/CommitmentTypeIndicationUnitTest.cs
+++ b/crypto/test/src/asn1/test/CommitmentTypeIndicationUnitTest.cs
@@ -90,11 +90,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new CommitmentTypeIndicationUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/CommitmentTypeQualifierUnitTest.cs b/crypto/test/src/asn1/test/CommitmentTypeQualifierUnitTest.cs
index 192ac52f6..65997c971 100644
--- a/crypto/test/src/asn1/test/CommitmentTypeQualifierUnitTest.cs
+++ b/crypto/test/src/asn1/test/CommitmentTypeQualifierUnitTest.cs
@@ -90,11 +90,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new CommitmentTypeQualifierUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/ContentHintsUnitTest.cs b/crypto/test/src/asn1/test/ContentHintsUnitTest.cs
index d7453c27e..8e953c203 100644
--- a/crypto/test/src/asn1/test/ContentHintsUnitTest.cs
+++ b/crypto/test/src/asn1/test/ContentHintsUnitTest.cs
@@ -76,11 +76,13 @@ namespace Org.BouncyCastle.Asn1.Tests
checkOptionalField("description", description, hints.ContentDescription);
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new ContentHintsUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/CscaMasterListTest.cs b/crypto/test/src/asn1/test/CscaMasterListTest.cs
index 814e98b2a..b3169ca87 100644
--- a/crypto/test/src/asn1/test/CscaMasterListTest.cs
+++ b/crypto/test/src/asn1/test/CscaMasterListTest.cs
@@ -40,11 +40,13 @@ namespace Org.BouncyCastle.Asn1.Tests
return Streams.ReadAll(SimpleTest.GetTestDataAsStream("asn1." + name));
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new CscaMasterListTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/DERApplicationSpecificTest.cs b/crypto/test/src/asn1/test/DERApplicationSpecificTest.cs
index e505acd9d..2d3849a2a 100644
--- a/crypto/test/src/asn1/test/DERApplicationSpecificTest.cs
+++ b/crypto/test/src/asn1/test/DERApplicationSpecificTest.cs
@@ -128,11 +128,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new DerApplicationSpecificTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/DERUTF8StringTest.cs b/crypto/test/src/asn1/test/DERUTF8StringTest.cs
index be4dace79..b84f5b621 100644
--- a/crypto/test/src/asn1/test/DERUTF8StringTest.cs
+++ b/crypto/test/src/asn1/test/DERUTF8StringTest.cs
@@ -93,7 +93,8 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
DerUtf8StringTest test = new DerUtf8StringTest();
@@ -101,6 +102,7 @@ namespace Org.BouncyCastle.Asn1.Tests
Console.WriteLine(result);
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/DataGroupHashUnitTest.cs b/crypto/test/src/asn1/test/DataGroupHashUnitTest.cs
index dcebf4670..9832dc0dd 100644
--- a/crypto/test/src/asn1/test/DataGroupHashUnitTest.cs
+++ b/crypto/test/src/asn1/test/DataGroupHashUnitTest.cs
@@ -89,11 +89,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new DataGroupHashUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs b/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs
index bd1fb5a9e..37c6fb519 100644
--- a/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs
+++ b/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs
@@ -80,11 +80,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new DeclarationOfMajorityUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/EncryptedPrivateKeyInfoTest.cs b/crypto/test/src/asn1/test/EncryptedPrivateKeyInfoTest.cs
index a84df59cc..34e5495cf 100644
--- a/crypto/test/src/asn1/test/EncryptedPrivateKeyInfoTest.cs
+++ b/crypto/test/src/asn1/test/EncryptedPrivateKeyInfoTest.cs
@@ -132,7 +132,8 @@ namespace Org.BouncyCastle.Asn1.Tests
return new SimpleTestResult(true, Name + ": Okay");
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
ITest test = new EncryptedPrivateKeyInfoTest();
@@ -140,6 +141,7 @@ namespace Org.BouncyCastle.Asn1.Tests
Console.WriteLine(result);
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/EqualsAndHashCodeTest.cs b/crypto/test/src/asn1/test/EqualsAndHashCodeTest.cs
index 91329fbd5..2495fe20b 100644
--- a/crypto/test/src/asn1/test/EqualsAndHashCodeTest.cs
+++ b/crypto/test/src/asn1/test/EqualsAndHashCodeTest.cs
@@ -79,13 +79,13 @@ namespace Org.BouncyCastle.Asn1.Tests
{
get { return "EqualsAndHashCode"; }
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new EqualsAndHashCodeTest());
}
-
+#endif
[Test]
public void TestFunction()
{
diff --git a/crypto/test/src/asn1/test/EssCertIDv2UnitTest.cs b/crypto/test/src/asn1/test/EssCertIDv2UnitTest.cs
index 9aac777e1..60d0059ed 100644
--- a/crypto/test/src/asn1/test/EssCertIDv2UnitTest.cs
+++ b/crypto/test/src/asn1/test/EssCertIDv2UnitTest.cs
@@ -28,12 +28,13 @@ namespace Org.BouncyCastle.Asn1.Tests
EssCertIDv2.GetInstance(asn1Object);
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new EssCertIDv2UnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/GeneralNameTest.cs b/crypto/test/src/asn1/test/GeneralNameTest.cs
index e9c3b5861..95e0a903e 100644
--- a/crypto/test/src/asn1/test/GeneralNameTest.cs
+++ b/crypto/test/src/asn1/test/GeneralNameTest.cs
@@ -98,12 +98,13 @@ namespace Org.BouncyCastle.Asn1.Tests
Fail("ipv6h failed");
}
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new GeneralNameTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/GeneralizedTimeTest.cs b/crypto/test/src/asn1/test/GeneralizedTimeTest.cs
index 51995e195..af968397f 100644
--- a/crypto/test/src/asn1/test/GeneralizedTimeTest.cs
+++ b/crypto/test/src/asn1/test/GeneralizedTimeTest.cs
@@ -192,7 +192,7 @@ namespace Org.BouncyCastle.Asn1.Tests
char sign = '+';
// Note: GetUtcOffset incorporates Daylight Savings offset
- TimeSpan offset = TimeZone.CurrentTimeZone.GetUtcOffset(date);
+ TimeSpan offset = TimeZoneInfo.Local.GetUtcOffset(date);
if (offset.CompareTo(TimeSpan.Zero) < 0)
{
sign = '-';
@@ -213,12 +213,13 @@ namespace Org.BouncyCastle.Asn1.Tests
return time.ToString();
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new GeneralizedTimeTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/GenerationTest.cs b/crypto/test/src/asn1/test/GenerationTest.cs
index 862e66d22..840ae4707 100644
--- a/crypto/test/src/asn1/test/GenerationTest.cs
+++ b/crypto/test/src/asn1/test/GenerationTest.cs
@@ -307,12 +307,13 @@ namespace Org.BouncyCastle.Asn1.Tests
{
get { return "Generation"; }
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new GenerationTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/InputStreamTest.cs b/crypto/test/src/asn1/test/InputStreamTest.cs
index 1d92759e0..9734c9805 100644
--- a/crypto/test/src/asn1/test/InputStreamTest.cs
+++ b/crypto/test/src/asn1/test/InputStreamTest.cs
@@ -67,12 +67,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new InputStreamTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/Iso4217CurrencyCodeUnitTest.cs b/crypto/test/src/asn1/test/Iso4217CurrencyCodeUnitTest.cs
index bb6076a93..274ae25ce 100644
--- a/crypto/test/src/asn1/test/Iso4217CurrencyCodeUnitTest.cs
+++ b/crypto/test/src/asn1/test/Iso4217CurrencyCodeUnitTest.cs
@@ -139,11 +139,13 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new Iso4217CurrencyCodeUnitTest());
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/IssuingDistributionPointTest.cs b/crypto/test/src/asn1/test/IssuingDistributionPointTest.cs
index b5f5c88bb..5158f0610 100644
--- a/crypto/test/src/asn1/test/IssuingDistributionPointTest.cs
+++ b/crypto/test/src/asn1/test/IssuingDistributionPointTest.cs
@@ -115,13 +115,13 @@ namespace Org.BouncyCastle.Asn1.Tests
return o1.Equals(o2);
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new IssuingDistributionPointUnitTest());
}
-
+#endif
[Test]
public void TestFunction()
{
diff --git a/crypto/test/src/asn1/test/KeyUsageTest.cs b/crypto/test/src/asn1/test/KeyUsageTest.cs
index d7ed3655d..279446928 100644
--- a/crypto/test/src/asn1/test/KeyUsageTest.cs
+++ b/crypto/test/src/asn1/test/KeyUsageTest.cs
@@ -31,13 +31,13 @@ namespace Org.BouncyCastle.Asn1.Tests
BitStringConstantTester.testFlagValueCorrect(7, KeyUsage.EncipherOnly);
BitStringConstantTester.testFlagValueCorrect(8, KeyUsage.DecipherOnly);
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new KeyUsageTest());
}
-
+#endif
[Test]
public void TestFunction()
{
diff --git a/crypto/test/src/asn1/test/LDSSecurityObjectUnitTest.cs b/crypto/test/src/asn1/test/LDSSecurityObjectUnitTest.cs
index 914eda0b8..fa4c242d3 100644
--- a/crypto/test/src/asn1/test/LDSSecurityObjectUnitTest.cs
+++ b/crypto/test/src/asn1/test/LDSSecurityObjectUnitTest.cs
@@ -191,13 +191,13 @@ namespace Org.BouncyCastle.Asn1.Tests
Fail("version info found when none expected.");
}
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new LDSSecurityObjectUnitTest());
}
-
+#endif
[Test]
public void TestFunction()
{
diff --git a/crypto/test/src/asn1/test/MiscTest.cs b/crypto/test/src/asn1/test/MiscTest.cs
index 42f5dbd01..877925526 100644
--- a/crypto/test/src/asn1/test/MiscTest.cs
+++ b/crypto/test/src/asn1/test/MiscTest.cs
@@ -73,8 +73,8 @@ namespace Org.BouncyCastle.Asn1.Tests
{
get { return "Misc"; }
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
ITest test = new MiscTest();
@@ -82,6 +82,7 @@ namespace Org.BouncyCastle.Asn1.Tests
Console.WriteLine(result);
}
+#endif
[Test]
public void TestFunction()
diff --git a/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs b/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs
index cdeb2eca5..5af508509 100644
--- a/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs
+++ b/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs
@@ -75,13 +75,13 @@ namespace Org.BouncyCastle.Asn1.Tests
checkMandatoryField("amount", amount, limit.Amount.IntValue);
checkMandatoryField("exponent", exponent, limit.Exponent.IntValue);
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
RunTest(new MonetaryLimitUnitTest());
}
-
+#endif
[Test]
public void TestFunction()
{
diff --git a/crypto/test/src/asn1/test/MonetaryValueUnitTest.cs b/crypto/test/src/asn1/test/MonetaryValueUnitTest.cs
index c75d74505..dff75f2cd 100644
--- a/crypto/test/src/asn1/test/MonetaryValueUnitTest.cs
+++ b/crypto/test/src/asn1/test/MonetaryValueUnitTest.cs
@@ -82,7 +82,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new MonetaryValueUnitTest());
diff --git a/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs b/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs
index 45f66613b..f308c3f42 100644
--- a/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs
+++ b/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs
@@ -97,7 +97,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new NameOrPseudonymUnitTest());
diff --git a/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs b/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs
index 787b2c32d..31a1a539b 100644
--- a/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs
+++ b/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs
@@ -89,7 +89,7 @@ namespace Org.BouncyCastle.Asn1.Tests
checkOptionalField("namingAuthorityText", namingAuthorityText, auth.NamingAuthorityText);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new NamingAuthorityUnitTest());
diff --git a/crypto/test/src/asn1/test/NetscapeCertTypeTest.cs b/crypto/test/src/asn1/test/NetscapeCertTypeTest.cs
index 8db5d990c..27babc2e3 100644
--- a/crypto/test/src/asn1/test/NetscapeCertTypeTest.cs
+++ b/crypto/test/src/asn1/test/NetscapeCertTypeTest.cs
@@ -28,7 +28,7 @@ namespace Org.BouncyCastle.Asn1.Tests
BitStringConstantTester.testFlagValueCorrect(7, NetscapeCertType.ObjectSigningCA);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new NetscapeCertTypeTest());
diff --git a/crypto/test/src/asn1/test/OCSPTest.cs b/crypto/test/src/asn1/test/OCSPTest.cs
index 13f59d3d1..6fde822d3 100644
--- a/crypto/test/src/asn1/test/OCSPTest.cs
+++ b/crypto/test/src/asn1/test/OCSPTest.cs
@@ -163,7 +163,7 @@ namespace Org.BouncyCastle.Asn1.Tests
get { return "Ocsp"; }
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
ITest test = new OcspTest();
diff --git a/crypto/test/src/asn1/test/OIDTest.cs b/crypto/test/src/asn1/test/OIDTest.cs
index b0782db04..2007e4f25 100644
--- a/crypto/test/src/asn1/test/OIDTest.cs
+++ b/crypto/test/src/asn1/test/OIDTest.cs
@@ -128,8 +128,8 @@ namespace Org.BouncyCastle.Asn1.Tests
onCheck("1.1", "1.1.1", true);
onCheck("1.1", "1.1.2", true);
}
-
- public static void Main(
+#if !LIB
+ public static void MainOld(
string[] args)
{
ITest test = new OidTest();
@@ -137,7 +137,7 @@ namespace Org.BouncyCastle.Asn1.Tests
Console.WriteLine(result);
}
-
+#endif
[Test]
public void TestFunction()
{
diff --git a/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs b/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs
index a09c18e8a..6af7d6f09 100644
--- a/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs
+++ b/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs
@@ -83,7 +83,7 @@ namespace Org.BouncyCastle.Asn1.Tests
checkOptionalField("issuerSerial", issuerSerial, certID.IssuerSerial);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new OtherCertIDUnitTest());
diff --git a/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs b/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs
index 4410d8e4c..4906cf043 100644
--- a/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs
+++ b/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs
@@ -77,7 +77,7 @@ namespace Org.BouncyCastle.Asn1.Tests
checkMandatoryField("GetCerts()[0]", otherCertID, otherCert.GetCerts()[0]);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new OtherSigningCertificateUnitTest());
diff --git a/crypto/test/src/asn1/test/PKCS10Test.cs b/crypto/test/src/asn1/test/PKCS10Test.cs
index 28736b816..8a973eac1 100644
--- a/crypto/test/src/asn1/test/PKCS10Test.cs
+++ b/crypto/test/src/asn1/test/PKCS10Test.cs
@@ -75,7 +75,7 @@ namespace Org.BouncyCastle.Asn1.Tests
return BasicPkcs10Test("Universal CR", req2);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
ITest test = new Pkcs10Test();
diff --git a/crypto/test/src/asn1/test/PKCS12Test.cs b/crypto/test/src/asn1/test/PKCS12Test.cs
index c20fa8cc6..8ebb27030 100644
--- a/crypto/test/src/asn1/test/PKCS12Test.cs
+++ b/crypto/test/src/asn1/test/PKCS12Test.cs
@@ -193,7 +193,7 @@ namespace Org.BouncyCastle.Asn1.Tests
get { return "Pkcs12"; }
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new Pkcs12Test());
diff --git a/crypto/test/src/asn1/test/PKIFailureInfoTest.cs b/crypto/test/src/asn1/test/PKIFailureInfoTest.cs
index 7d51dbb5f..c40227352 100644
--- a/crypto/test/src/asn1/test/PKIFailureInfoTest.cs
+++ b/crypto/test/src/asn1/test/PKIFailureInfoTest.cs
@@ -72,7 +72,7 @@ namespace Org.BouncyCastle.Asn1.Tests
DoTestEncoding();
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new PkiFailureInfoTest());
diff --git a/crypto/test/src/asn1/test/ParsingTest.cs b/crypto/test/src/asn1/test/ParsingTest.cs
index bb219e2fc..324807262 100644
--- a/crypto/test/src/asn1/test/ParsingTest.cs
+++ b/crypto/test/src/asn1/test/ParsingTest.cs
@@ -95,7 +95,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new ParsingTest());
diff --git a/crypto/test/src/asn1/test/PersonalDataUnitTest.cs b/crypto/test/src/asn1/test/PersonalDataUnitTest.cs
index f92e619cf..625a382d4 100644
--- a/crypto/test/src/asn1/test/PersonalDataUnitTest.cs
+++ b/crypto/test/src/asn1/test/PersonalDataUnitTest.cs
@@ -110,7 +110,7 @@ namespace Org.BouncyCastle.Asn1.Tests
checkOptionalField("postalAddress", postalAddress, data.PostalAddress);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new PersonalDataUnitTest());
diff --git a/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs b/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs
index 97d0e3eee..0f7c290f9 100644
--- a/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs
+++ b/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs
@@ -94,7 +94,7 @@ namespace Org.BouncyCastle.Asn1.Tests
checkOptionalField("certRef", certRef, procuration.CertRef);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new ProcurationSyntaxUnitTest());
diff --git a/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs b/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs
index 6af2658ef..0450a21a7 100644
--- a/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs
+++ b/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs
@@ -104,7 +104,7 @@ namespace Org.BouncyCastle.Asn1.Tests
checkOptionalField("addProfessionInfo", addProfInfo, profInfo.AddProfessionInfo);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new ProfessionInfoUnitTest());
diff --git a/crypto/test/src/asn1/test/QCStatementUnitTest.cs b/crypto/test/src/asn1/test/QCStatementUnitTest.cs
index 8d8ec9ec7..347186f8a 100644
--- a/crypto/test/src/asn1/test/QCStatementUnitTest.cs
+++ b/crypto/test/src/asn1/test/QCStatementUnitTest.cs
@@ -91,7 +91,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new QCStatementUnitTest());
diff --git a/crypto/test/src/asn1/test/ReasonFlagsTest.cs b/crypto/test/src/asn1/test/ReasonFlagsTest.cs
index ef404b3e1..66b5c4cc1 100644
--- a/crypto/test/src/asn1/test/ReasonFlagsTest.cs
+++ b/crypto/test/src/asn1/test/ReasonFlagsTest.cs
@@ -29,7 +29,7 @@ namespace Org.BouncyCastle.Asn1.Tests
BitStringConstantTester.testFlagValueCorrect(8, ReasonFlags.AACompromise);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new ReasonFlagsTest());
diff --git a/crypto/test/src/asn1/test/RegressionTest.cs b/crypto/test/src/asn1/test/RegressionTest.cs
index 873ab4396..f78c0dd72 100644
--- a/crypto/test/src/asn1/test/RegressionTest.cs
+++ b/crypto/test/src/asn1/test/RegressionTest.cs
@@ -72,7 +72,7 @@ namespace Org.BouncyCastle.Asn1.Tests
new X9Test(),
};
- public static void Main(
+ public static void MainOld(
string[] args)
{
for (int i = 0; i != tests.Length; i++)
diff --git a/crypto/test/src/asn1/test/RequestedCertificateUnitTest.cs b/crypto/test/src/asn1/test/RequestedCertificateUnitTest.cs
index 767504173..433b3fe6b 100644
--- a/crypto/test/src/asn1/test/RequestedCertificateUnitTest.cs
+++ b/crypto/test/src/asn1/test/RequestedCertificateUnitTest.cs
@@ -100,7 +100,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new RequestedCertificateUnitTest());
diff --git a/crypto/test/src/asn1/test/RestrictionUnitTest.cs b/crypto/test/src/asn1/test/RestrictionUnitTest.cs
index 5dd6438cb..b240418a4 100644
--- a/crypto/test/src/asn1/test/RestrictionUnitTest.cs
+++ b/crypto/test/src/asn1/test/RestrictionUnitTest.cs
@@ -61,7 +61,7 @@ namespace Org.BouncyCastle.Asn1.Tests
checkMandatoryField("restriction", res, restriction.RestrictionString);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new RestrictionUnitTest());
diff --git a/crypto/test/src/asn1/test/SMIMETest.cs b/crypto/test/src/asn1/test/SMIMETest.cs
index adb90e093..df76c507a 100644
--- a/crypto/test/src/asn1/test/SMIMETest.cs
+++ b/crypto/test/src/asn1/test/SMIMETest.cs
@@ -70,7 +70,7 @@ namespace Org.BouncyCastle.Asn1.Tests
get { return "SMIME"; }
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
ITest test = new SmimeTest();
diff --git a/crypto/test/src/asn1/test/SemanticsInformationUnitTest.cs b/crypto/test/src/asn1/test/SemanticsInformationUnitTest.cs
index 8f1f85f19..0bfa49725 100644
--- a/crypto/test/src/asn1/test/SemanticsInformationUnitTest.cs
+++ b/crypto/test/src/asn1/test/SemanticsInformationUnitTest.cs
@@ -121,7 +121,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new SemanticsInformationUnitTest());
diff --git a/crypto/test/src/asn1/test/SetTest.cs b/crypto/test/src/asn1/test/SetTest.cs
index 57c46603d..c33d39989 100644
--- a/crypto/test/src/asn1/test/SetTest.cs
+++ b/crypto/test/src/asn1/test/SetTest.cs
@@ -100,7 +100,7 @@ namespace Org.BouncyCastle.Asn1.Tests
s = new DerSet(v);
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new SetTest());
diff --git a/crypto/test/src/asn1/test/SignerLocationUnitTest.cs b/crypto/test/src/asn1/test/SignerLocationUnitTest.cs
index bf20f1fda..a0104dc81 100644
--- a/crypto/test/src/asn1/test/SignerLocationUnitTest.cs
+++ b/crypto/test/src/asn1/test/SignerLocationUnitTest.cs
@@ -178,7 +178,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new SignerLocationUnitTest());
diff --git a/crypto/test/src/asn1/test/StringTest.cs b/crypto/test/src/asn1/test/StringTest.cs
index acfd380b2..52f61dc86 100644
--- a/crypto/test/src/asn1/test/StringTest.cs
+++ b/crypto/test/src/asn1/test/StringTest.cs
@@ -88,7 +88,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new StringTest());
diff --git a/crypto/test/src/asn1/test/SubjectKeyIdentifierTest.cs b/crypto/test/src/asn1/test/SubjectKeyIdentifierTest.cs
index 127c47a3a..84273dfc2 100644
--- a/crypto/test/src/asn1/test/SubjectKeyIdentifierTest.cs
+++ b/crypto/test/src/asn1/test/SubjectKeyIdentifierTest.cs
@@ -44,7 +44,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new SubjectKeyIdentifierTest());
diff --git a/crypto/test/src/asn1/test/TagTest.cs b/crypto/test/src/asn1/test/TagTest.cs
index 80ca2c0ea..6ede1b40b 100644
--- a/crypto/test/src/asn1/test/TagTest.cs
+++ b/crypto/test/src/asn1/test/TagTest.cs
@@ -102,7 +102,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new TagTest());
diff --git a/crypto/test/src/asn1/test/TargetInformationTest.cs b/crypto/test/src/asn1/test/TargetInformationTest.cs
index 7fa04cd01..022743aa8 100644
--- a/crypto/test/src/asn1/test/TargetInformationTest.cs
+++ b/crypto/test/src/asn1/test/TargetInformationTest.cs
@@ -41,7 +41,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new TargetInformationTest());
diff --git a/crypto/test/src/asn1/test/TypeOfBiometricDataUnitTest.cs b/crypto/test/src/asn1/test/TypeOfBiometricDataUnitTest.cs
index a59415c31..eb221ea20 100644
--- a/crypto/test/src/asn1/test/TypeOfBiometricDataUnitTest.cs
+++ b/crypto/test/src/asn1/test/TypeOfBiometricDataUnitTest.cs
@@ -135,7 +135,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new TypeOfBiometricDataUnitTest());
diff --git a/crypto/test/src/asn1/test/UTCTimeTest.cs b/crypto/test/src/asn1/test/UTCTimeTest.cs
index 07abbc911..a4a1c9941 100644
--- a/crypto/test/src/asn1/test/UTCTimeTest.cs
+++ b/crypto/test/src/asn1/test/UTCTimeTest.cs
@@ -105,7 +105,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new UtcTimeTest());
diff --git a/crypto/test/src/asn1/test/X509ExtensionsTest.cs b/crypto/test/src/asn1/test/X509ExtensionsTest.cs
index f1efd3a9b..468296c7f 100644
--- a/crypto/test/src/asn1/test/X509ExtensionsTest.cs
+++ b/crypto/test/src/asn1/test/X509ExtensionsTest.cs
@@ -100,7 +100,7 @@ namespace Org.BouncyCastle.Asn1.Tests
}
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new X509ExtensionsTest());
diff --git a/crypto/test/src/asn1/test/X509NameTest.cs b/crypto/test/src/asn1/test/X509NameTest.cs
index 9a564f72f..e8eda6851 100644
--- a/crypto/test/src/asn1/test/X509NameTest.cs
+++ b/crypto/test/src/asn1/test/X509NameTest.cs
@@ -654,7 +654,7 @@ namespace Org.BouncyCastle.Asn1.Tests
return true;
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
ITest test = new X509NameTest();
diff --git a/crypto/test/src/asn1/test/X9Test.cs b/crypto/test/src/asn1/test/X9Test.cs
index db2541f7c..f804a0adc 100644
--- a/crypto/test/src/asn1/test/X9Test.cs
+++ b/crypto/test/src/asn1/test/X9Test.cs
@@ -155,7 +155,7 @@ namespace Org.BouncyCastle.Asn1.Tests
get { return "X9"; }
}
- public static void Main(
+ public static void MainOld(
string[] args)
{
RunTest(new X9Test());
|