diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-08 15:15:29 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-08 15:15:29 +0700 |
commit | cb393311172a5a753038ab77886007e6c5b579bf (patch) | |
tree | 99744aac15aab56e564e1ae270393a08cf7e4da0 /crypto | |
parent | Span usage in Asn1RelativeOid (diff) | |
download | BouncyCastle.NET-ed25519-cb393311172a5a753038ab77886007e6c5b579bf.tar.xz |
Refactor TestSampler
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/test/src/pqc/crypto/test/TestSampler.cs | 9 |
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); } } } |