diff options
author | Oren Novotny <oren@novotny.org> | 2019-08-22 09:05:10 -0400 |
---|---|---|
committer | Oren Novotny <oren@novotny.org> | 2019-08-22 09:05:10 -0400 |
commit | 3d85eea12b77c8634f31cecbd55025cf76cd9f9a (patch) | |
tree | 2807ad1b7ec007512e6346370a27f9ec5f85f3f9 | |
parent | Revert all Main -> MainOld renames by specifying startup object explicitly (diff) | |
download | BouncyCastle.NET-ed25519-3d85eea12b77c8634f31cecbd55025cf76cd9f9a.tar.xz |
Fix parsing of test messages due to using arg exception with parameter name
-rw-r--r-- | crypto/test/src/asn1/test/ASN1IntegerTest.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto/test/src/asn1/test/ASN1IntegerTest.cs b/crypto/test/src/asn1/test/ASN1IntegerTest.cs index 35366ea96..8e8b9beb1 100644 --- a/crypto/test/src/asn1/test/ASN1IntegerTest.cs +++ b/crypto/test/src/asn1/test/ASN1IntegerTest.cs @@ -60,7 +60,7 @@ namespace Org.BouncyCastle.Asn1.Tests } catch (ArgumentException e) { - IsEquals("malformed integer", e.Message); + IsTrue(e.Message.StartsWith("malformed integer")); } // No support for thread-local override in C# version @@ -89,7 +89,7 @@ namespace Org.BouncyCastle.Asn1.Tests } catch (ArgumentException e) { - IsEquals("malformed integer", e.Message); + IsTrue(e.Message.StartsWith("malformed integer")); } try @@ -100,7 +100,7 @@ namespace Org.BouncyCastle.Asn1.Tests } catch (ArgumentException e) { - IsEquals("malformed enumerated", e.Message); + IsTrue(e.Message.StartsWith("malformed enumerated")); } try @@ -111,7 +111,7 @@ namespace Org.BouncyCastle.Asn1.Tests } catch (ArgumentException e) { - IsEquals("malformed enumerated", e.Message); + IsTrue(e.Message.StartsWith("malformed enumerated")); } #endif } @@ -173,7 +173,7 @@ namespace Org.BouncyCastle.Asn1.Tests } catch (ArgumentException e) { - IsEquals("malformed integer", e.Message); + IsTrue(e.Message.StartsWith("malformed integer")); } } @@ -189,7 +189,7 @@ namespace Org.BouncyCastle.Asn1.Tests } catch (ArgumentException e) { - IsEquals("malformed integer", e.Message); + IsTrue(e.Message.StartsWith("malformed integer")); } } @@ -209,7 +209,7 @@ namespace Org.BouncyCastle.Asn1.Tests } catch (ArgumentException e) { - IsEquals("malformed integer", e.Message); + IsTrue(e.Message.StartsWith("malformed integer")); } } @@ -228,7 +228,7 @@ namespace Org.BouncyCastle.Asn1.Tests } catch (ArgumentException e) { - IsEquals("malformed integer", e.Message); + IsTrue(e.Message.StartsWith("malformed integer")); } } |