summary refs log tree commit diff
path: root/crypto/test/src/asn1
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-09-02 17:47:57 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-09-02 17:47:57 +0700
commit7c0861e327e642b108bafe61a9d0f90175b4b4eb (patch)
tree5022fd82facef93fabe9160460a41bf37a10d809 /crypto/test/src/asn1
parentMethodImplOptions in GCMBlockCipher (diff)
downloadBouncyCastle.NET-ed25519-7c0861e327e642b108bafe61a9d0f90175b4b4eb.tar.xz
Clean up tests
Diffstat (limited to 'crypto/test/src/asn1')
-rw-r--r--crypto/test/src/asn1/test/ASN1IntegerTest.cs12
-rw-r--r--crypto/test/src/asn1/test/MiscTest.cs4
2 files changed, 2 insertions, 14 deletions
diff --git a/crypto/test/src/asn1/test/ASN1IntegerTest.cs b/crypto/test/src/asn1/test/ASN1IntegerTest.cs
index 1735db9a6..10570c800 100644
--- a/crypto/test/src/asn1/test/ASN1IntegerTest.cs
+++ b/crypto/test/src/asn1/test/ASN1IntegerTest.cs
@@ -24,9 +24,6 @@ namespace Org.BouncyCastle.Asn1.Tests
 
         public override void PerformTest()
         {
-#if PORTABLE && !DOTNET
-            // Can't SetEnvironmentVariable !
-#else
             SetAllowUnsafeProperty(true);
 
             Asn1Sequence.GetInstance(suspectKey);
@@ -37,7 +34,7 @@ namespace Org.BouncyCastle.Asn1.Tests
             DoTestInvalidEncoding_ff();
             DoTestInvalidEncoding_00_32bits();
             DoTestInvalidEncoding_ff_32bits();
-            //DoDoTestLooseInvalidValidEncoding_FF_32B();
+            //DoTestLooseInvalidValidEncoding_FF_32B();
             //DoTestLooseInvalidValidEncoding_zero_32B();
             DoTestLooseValidEncoding_zero_32BAligned();
             DoTestLooseValidEncoding_FF_32BAligned();
@@ -114,7 +111,6 @@ namespace Org.BouncyCastle.Asn1.Tests
             {
                 CheckArgumentException(e, "malformed enumerated");
             }
-#endif
         }
 
         /**
@@ -255,7 +251,7 @@ namespace Org.BouncyCastle.Asn1.Tests
             }
         }
 
-        public void DoDoTestLooseInvalidValidEncoding_FF_32B()
+        public void DoTestLooseInvalidValidEncoding_FF_32B()
             throws Exception
         {
             //
@@ -351,11 +347,7 @@ namespace Org.BouncyCastle.Asn1.Tests
 
         private void SetAllowUnsafeProperty(bool allowUnsafe)
         {
-#if PORTABLE && !DOTNET
-            // Can't SetEnvironmentVariable !
-#else
             Environment.SetEnvironmentVariable(DerInteger.AllowUnsafeProperty, allowUnsafe ? "true" : "false");
-#endif
         }
 
         private void CheckIntValue(DerInteger i, int n)
diff --git a/crypto/test/src/asn1/test/MiscTest.cs b/crypto/test/src/asn1/test/MiscTest.cs
index c2a5528dc..475055f2d 100644
--- a/crypto/test/src/asn1/test/MiscTest.cs
+++ b/crypto/test/src/asn1/test/MiscTest.cs
@@ -85,11 +85,7 @@ namespace Org.BouncyCastle.Asn1.Tests
 
         private void SetAllowUnsafeProperty(bool allowUnsafe)
         {
-#if PORTABLE && !DOTNET
-            // Can't SetEnvironmentVariable !
-#else
             Environment.SetEnvironmentVariable(DerInteger.AllowUnsafeProperty, allowUnsafe ? "true" : "false");
-#endif
         }
 
         public override void PerformTest()