diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-29 20:21:24 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-29 20:21:24 +0700 |
commit | 3a52a1140b2a0851542fc70cd9ffec93a2990a44 (patch) | |
tree | 248fd26106c797f565b86f9e8942ee37694e73e8 | |
parent | Increase number of small factors tested for (diff) | |
download | BouncyCastle.NET-ed25519-3a52a1140b2a0851542fc70cd9ffec93a2990a44.tar.xz |
Avoid duplicate tests
-rw-r--r-- | crypto/test/src/math/ec/test/ECAlgorithmsTest.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/test/src/math/ec/test/ECAlgorithmsTest.cs b/crypto/test/src/math/ec/test/ECAlgorithmsTest.cs index 678b2991c..0b3a203dd 100644 --- a/crypto/test/src/math/ec/test/ECAlgorithmsTest.cs +++ b/crypto/test/src/math/ec/test/ECAlgorithmsTest.cs @@ -134,9 +134,9 @@ namespace Org.BouncyCastle.Math.EC.Tests private IList GetTestCurves() { ArrayList x9s = new ArrayList(); - ArrayList names = new ArrayList(); - CollectionUtilities.AddRange(names, ECNamedCurveTable.Names); - CollectionUtilities.AddRange(names, CustomNamedCurves.Names); + ISet names = new HashSet(ECNamedCurveTable.Names); + names.AddAll(CustomNamedCurves.Names); + foreach (string name in names) { X9ECParameters x9 = ECNamedCurveTable.GetByName(name); |