summary refs log tree commit diff
path: root/crypto/test/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-10-29 20:21:24 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-10-29 20:21:24 +0700
commit3a52a1140b2a0851542fc70cd9ffec93a2990a44 (patch)
tree248fd26106c797f565b86f9e8942ee37694e73e8 /crypto/test/src
parentIncrease number of small factors tested for (diff)
downloadBouncyCastle.NET-ed25519-3a52a1140b2a0851542fc70cd9ffec93a2990a44.tar.xz
Avoid duplicate tests
Diffstat (limited to 'crypto/test/src')
-rw-r--r--crypto/test/src/math/ec/test/ECAlgorithmsTest.cs6
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);