summary refs log tree commit diff
path: root/crypto/test/src/math
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-06-25 01:32:32 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-06-25 01:32:32 +0700
commit35ad48901c94bf59499ff02a5cc9075e571f545a (patch)
treebb5a8560a2bb12ce240dbe556264c3da4eaf8b02 /crypto/test/src/math
parentReplace Dump program with static utility method (diff)
downloadBouncyCastle.NET-ed25519-35ad48901c94bf59499ff02a5cc9075e571f545a.tar.xz
Refactoring
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)
                 {