summary refs log tree commit diff
path: root/crypto/test/src/math
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-01-23 14:51:37 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-01-23 14:51:37 +0700
commit17afdeeaee41d9ff9012d0318880f83c82570995 (patch)
tree0d3b85427dbfed4371e7716aa8c8111904b83dbf /crypto/test/src/math
parentFormatting (diff)
downloadBouncyCastle.NET-ed25519-17afdeeaee41d9ff9012d0318880f83c82570995.tar.xz
Rewrite some tests to avoid (obsoleted) explicit field element construction
Diffstat (limited to 'crypto/test/src/math')
-rw-r--r--crypto/test/src/math/ec/test/ECPointTest.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/test/src/math/ec/test/ECPointTest.cs b/crypto/test/src/math/ec/test/ECPointTest.cs
index 6c628c29c..54c54d1d4 100644
--- a/crypto/test/src/math/ec/test/ECPointTest.cs
+++ b/crypto/test/src/math/ec/test/ECPointTest.cs
@@ -123,8 +123,7 @@ namespace Org.BouncyCastle.Math.EC.Tests
         {
             try
             {
-                FpPoint bad = new FpPoint(Fp.curve, new FpFieldElement(
-                    Fp.q, new BigInteger("12")), null);
+                ECPoint bad = Fp.curve.CreatePoint(BigInteger.ValueOf(12), null);
                 Assert.Fail();
             }
             catch (ArgumentException)
@@ -134,8 +133,7 @@ namespace Org.BouncyCastle.Math.EC.Tests
 
             try
             {
-                FpPoint bad = new FpPoint(Fp.curve, null,
-                    new FpFieldElement(Fp.q, new BigInteger("12")));
+                ECPoint bad = Fp.curve.CreatePoint(null, BigInteger.ValueOf(12));
                 Assert.Fail();
             }
             catch (ArgumentException)