diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-09 17:16:56 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-09 17:16:56 +0700 |
commit | 194d05d2d8f4ad5eb2d1d940cb692096f1210485 (patch) | |
tree | d20b2361464de214558228c738fb9aba087ae769 | |
parent | Add non-constant-time variant to ECLookupTable (diff) | |
download | BouncyCastle.NET-ed25519-194d05d2d8f4ad5eb2d1d940cb692096f1210485.tar.xz |
Loosen test requirements on error message
-rw-r--r-- | crypto/test/src/asn1/test/MiscTest.cs | 8 |
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")); } } |