summary refs log tree commit diff
path: root/crypto/test/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/test/src/math')
-rw-r--r--crypto/test/src/math/ec/test/FixedPointTest.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/test/src/math/ec/test/FixedPointTest.cs b/crypto/test/src/math/ec/test/FixedPointTest.cs
index 83e5fab8f..433f956da 100644
--- a/crypto/test/src/math/ec/test/FixedPointTest.cs
+++ b/crypto/test/src/math/ec/test/FixedPointTest.cs
@@ -1,5 +1,5 @@
 using System;
-using System.Collections;
+using System.Collections.Generic;
 
 using NUnit.Framework;
 
@@ -23,9 +23,9 @@ namespace Org.BouncyCastle.Math.EC.Tests
         {
             FixedPointCombMultiplier M = new FixedPointCombMultiplier();
 
-            ArrayList names = new ArrayList();
-            CollectionUtilities.AddRange(names, ECNamedCurveTable.Names);
-            CollectionUtilities.AddRange(names, CustomNamedCurves.Names);
+            var names = new List<string>();
+            names.AddRange(ECNamedCurveTable.Names);
+            names.AddRange(CustomNamedCurves.Names);
 
             ISet uniqNames = new HashSet(names);
 
@@ -34,7 +34,7 @@ namespace Org.BouncyCastle.Math.EC.Tests
                 X9ECParameters x9A = ECNamedCurveTable.GetByName(name);
                 X9ECParameters x9B = CustomNamedCurves.GetByName(name);
 
-                X9ECParameters x9 = x9B != null ? x9B : x9A;
+                X9ECParameters x9 = x9B ?? x9A;
 
                 for (int i = 0; i < TestsPerCurve; ++i)
                 {