summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-08-09 17:16:56 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-08-09 17:16:56 +0700
commit194d05d2d8f4ad5eb2d1d940cb692096f1210485 (patch)
treed20b2361464de214558228c738fb9aba087ae769
parentAdd non-constant-time variant to ECLookupTable (diff)
downloadBouncyCastle.NET-ed25519-194d05d2d8f4ad5eb2d1d940cb692096f1210485.tar.xz
Loosen test requirements on error message
-rw-r--r--crypto/test/src/asn1/test/MiscTest.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/test/src/asn1/test/MiscTest.cs b/crypto/test/src/asn1/test/MiscTest.cs
index 6b8411996..5c48b6f07 100644
--- a/crypto/test/src/asn1/test/MiscTest.cs
+++ b/crypto/test/src/asn1/test/MiscTest.cs
@@ -46,7 +46,7 @@ namespace Org.BouncyCastle.Asn1.Tests
             }
             catch (ArgumentException e)
             {
-                IsTrue("wrong exc", "malformed integer".Equals(e.Message));
+                IsTrue("wrong exc", e.Message.StartsWith("malformed integer"));
             }
 
             try
@@ -55,7 +55,7 @@ namespace Org.BouncyCastle.Asn1.Tests
             }
             catch (ArgumentException e)
             {
-                IsTrue("wrong exc", "malformed integer".Equals(e.Message));
+                IsTrue("wrong exc", e.Message.StartsWith("malformed integer"));
             }
 
             try
@@ -64,7 +64,7 @@ namespace Org.BouncyCastle.Asn1.Tests
             }
             catch (ArgumentException e)
             {
-                IsTrue("wrong exc", "malformed enumerated".Equals(e.Message));
+                IsTrue("wrong exc", e.Message.StartsWith("malformed enumerated"));
             }
 
             try
@@ -73,7 +73,7 @@ namespace Org.BouncyCastle.Asn1.Tests
             }
             catch (ArgumentException e)
             {
-                IsTrue("wrong exc", "malformed enumerated".Equals(e.Message));
+                IsTrue("wrong exc", e.Message.StartsWith("malformed enumerated"));
             }
         }