summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-10-08 15:15:29 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-10-08 15:15:29 +0700
commitcb393311172a5a753038ab77886007e6c5b579bf (patch)
tree99744aac15aab56e564e1ae270393a08cf7e4da0
parentSpan usage in Asn1RelativeOid (diff)
downloadBouncyCastle.NET-ed25519-cb393311172a5a753038ab77886007e6c5b579bf.tar.xz
Refactor TestSampler
-rw-r--r--crypto/test/src/pqc/crypto/test/TestSampler.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/crypto/test/src/pqc/crypto/test/TestSampler.cs b/crypto/test/src/pqc/crypto/test/TestSampler.cs
index be61d920f..f989e8c77 100644
--- a/crypto/test/src/pqc/crypto/test/TestSampler.cs
+++ b/crypto/test/src/pqc/crypto/test/TestSampler.cs
@@ -1,8 +1,4 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Tests
 {
@@ -19,8 +15,11 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests
 
         internal bool SkipTest(string count)
         {
+            if (isFull)
+                return false;
+
             int c = int.Parse(count);
-            return !isFull && c != 0 && ((c + offSet) % 9 != 0);
+            return c != 0 && ((c + offSet) % 9 != 0);
         }
     }
 }