From 5af9e09a87cc120e2f2da4fadc6b04685f96dda0 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 22 Jun 2022 22:08:13 +0700 Subject: Code cleanup --- crypto/test/src/asn1/test/ASN1IntegerTest.cs | 4 ++-- crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs | 2 +- crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs | 2 +- crypto/test/src/asn1/test/AdmissionsUnitTest.cs | 2 +- crypto/test/src/asn1/test/CertHashUnitTest.cs | 2 +- crypto/test/src/asn1/test/ContentHintsUnitTest.cs | 2 +- crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs | 2 +- crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs | 2 +- crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs | 2 +- crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs | 2 +- crypto/test/src/asn1/test/OIDTest.cs | 2 +- crypto/test/src/asn1/test/OtherCertIDUnitTest.cs | 2 +- crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs | 2 +- crypto/test/src/asn1/test/ParsingTest.cs | 4 ++-- crypto/test/src/asn1/test/PersonalDataUnitTest.cs | 2 +- crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs | 2 +- crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs | 2 +- crypto/test/src/asn1/test/RestrictionUnitTest.cs | 2 +- 18 files changed, 20 insertions(+), 20 deletions(-) (limited to 'crypto/test/src/asn1') diff --git a/crypto/test/src/asn1/test/ASN1IntegerTest.cs b/crypto/test/src/asn1/test/ASN1IntegerTest.cs index 0e37a7e10..c11a099bf 100644 --- a/crypto/test/src/asn1/test/ASN1IntegerTest.cs +++ b/crypto/test/src/asn1/test/ASN1IntegerTest.cs @@ -339,12 +339,12 @@ namespace Org.BouncyCastle.Asn1.Tests CheckArgumentException(e, "malformed integer"); } } - private void CheckArgumentException(ArgumentException e, String expectedMessage) + private void CheckArgumentException(ArgumentException e, string expectedMessage) { IsTrue(e.Message.StartsWith(expectedMessage)); } - private void CheckArgumentException(String errorText, ArgumentException e, String expectedMessage) + private void CheckArgumentException(string errorText, ArgumentException e, string expectedMessage) { IsTrue(errorText, e.Message.StartsWith(expectedMessage)); } diff --git a/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs b/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs index b7246193b..7e92fc02f 100644 --- a/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs +++ b/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs @@ -24,7 +24,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - AdditionalInformationSyntax.GetInstance(new Object()); + AdditionalInformationSyntax.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs b/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs index 8d0a1f821..0a454f6a9 100644 --- a/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs +++ b/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs @@ -37,7 +37,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - AdmissionSyntax.GetInstance(new Object()); + AdmissionSyntax.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/AdmissionsUnitTest.cs b/crypto/test/src/asn1/test/AdmissionsUnitTest.cs index edefeb830..8d65258ee 100644 --- a/crypto/test/src/asn1/test/AdmissionsUnitTest.cs +++ b/crypto/test/src/asn1/test/AdmissionsUnitTest.cs @@ -34,7 +34,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - Admissions.GetInstance(new Object()); + Admissions.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/CertHashUnitTest.cs b/crypto/test/src/asn1/test/CertHashUnitTest.cs index 1e271a9c0..d3311a9ad 100644 --- a/crypto/test/src/asn1/test/CertHashUnitTest.cs +++ b/crypto/test/src/asn1/test/CertHashUnitTest.cs @@ -36,7 +36,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - CertHash.GetInstance(new Object()); + CertHash.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/ContentHintsUnitTest.cs b/crypto/test/src/asn1/test/ContentHintsUnitTest.cs index d7453c27e..7d96fc5c4 100644 --- a/crypto/test/src/asn1/test/ContentHintsUnitTest.cs +++ b/crypto/test/src/asn1/test/ContentHintsUnitTest.cs @@ -37,7 +37,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - ContentHints.GetInstance(new Object()); + ContentHints.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs b/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs index f9eef4f47..a7cf28798 100644 --- a/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs +++ b/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs @@ -35,7 +35,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - DeclarationOfMajority.GetInstance(new Object()); + DeclarationOfMajority.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs b/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs index cdeb2eca5..01f3b564d 100644 --- a/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs +++ b/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs @@ -34,7 +34,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - MonetaryLimit.GetInstance(new Object()); + MonetaryLimit.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs b/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs index 45f66613b..c8233fb08 100644 --- a/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs +++ b/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs @@ -39,7 +39,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - NameOrPseudonym.GetInstance(new Object()); + NameOrPseudonym.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs b/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs index 787b2c32d..8eb1d2118 100644 --- a/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs +++ b/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs @@ -47,7 +47,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - NamingAuthority.GetInstance(new Object()); + NamingAuthority.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/OIDTest.cs b/crypto/test/src/asn1/test/OIDTest.cs index 9a1927a41..1a46d5993 100644 --- a/crypto/test/src/asn1/test/OIDTest.cs +++ b/crypto/test/src/asn1/test/OIDTest.cs @@ -77,7 +77,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - private void OnCheck(String stem, String test, bool expected) + private void OnCheck(string stem, string test, bool expected) { if (expected != new DerObjectIdentifier(test).On(new DerObjectIdentifier(stem))) { diff --git a/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs b/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs index a09c18e8a..a7b720679 100644 --- a/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs +++ b/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs @@ -40,7 +40,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - OtherCertID.GetInstance(new Object()); + OtherCertID.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs b/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs index 4410d8e4c..692dd9cc1 100644 --- a/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs +++ b/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs @@ -37,7 +37,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - OtherCertID.GetInstance(new Object()); + OtherCertID.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/ParsingTest.cs b/crypto/test/src/asn1/test/ParsingTest.cs index bb219e2fc..a243ac194 100644 --- a/crypto/test/src/asn1/test/ParsingTest.cs +++ b/crypto/test/src/asn1/test/ParsingTest.cs @@ -49,7 +49,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - Object obj; + object obj; while ((obj = aIn.ReadObject()) != null) { } @@ -76,7 +76,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - Object obj; + object obj; while ((obj = aIn.ReadObject()) != null) { } diff --git a/crypto/test/src/asn1/test/PersonalDataUnitTest.cs b/crypto/test/src/asn1/test/PersonalDataUnitTest.cs index f92e619cf..faeab6253 100644 --- a/crypto/test/src/asn1/test/PersonalDataUnitTest.cs +++ b/crypto/test/src/asn1/test/PersonalDataUnitTest.cs @@ -59,7 +59,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - PersonalData.GetInstance(new Object()); + PersonalData.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs b/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs index 97d0e3eee..d89d7d83d 100644 --- a/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs +++ b/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs @@ -49,7 +49,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - ProcurationSyntax.GetInstance(new Object()); + ProcurationSyntax.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs b/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs index 6af2658ef..9504c46b8 100644 --- a/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs +++ b/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs @@ -53,7 +53,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - ProcurationSyntax.GetInstance(new Object()); + ProfessionInfo.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } diff --git a/crypto/test/src/asn1/test/RestrictionUnitTest.cs b/crypto/test/src/asn1/test/RestrictionUnitTest.cs index 5dd6438cb..073b2ebf9 100644 --- a/crypto/test/src/asn1/test/RestrictionUnitTest.cs +++ b/crypto/test/src/asn1/test/RestrictionUnitTest.cs @@ -25,7 +25,7 @@ namespace Org.BouncyCastle.Asn1.Tests try { - Restriction.GetInstance(new Object()); + Restriction.GetInstance(new object()); Fail("GetInstance() failed to detect bad object."); } -- cgit 1.5.1