diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-25 01:32:32 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-25 01:32:32 +0700 |
commit | 35ad48901c94bf59499ff02a5cc9075e571f545a (patch) | |
tree | bb5a8560a2bb12ce240dbe556264c3da4eaf8b02 /crypto/test | |
parent | Replace Dump program with static utility method (diff) | |
download | BouncyCastle.NET-ed25519-35ad48901c94bf59499ff02a5cc9075e571f545a.tar.xz |
Refactoring
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/math/ec/test/FixedPointTest.cs | 10 |
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) { |