diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-16 12:41:05 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-16 12:41:05 +0700 |
commit | fdeafa10e2dcfee734d050f2f11ab50a350f69cc (patch) | |
tree | b839357e0bea77bf7c192671b77539b9051162a0 /crypto/test | |
parent | Fix non-8-aligned IPv4 netmask parsing (diff) | |
download | BouncyCastle.NET-ed25519-fdeafa10e2dcfee734d050f2f11ab50a350f69cc.tar.xz |
Fix rethrow syntax
- see https://github.com/bcgit/bc-csharp/issues/425
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/math/test/PrimesTest.cs | 2 | ||||
-rw-r--r-- | crypto/test/src/test/BaseBlockCipherTest.cs | 4 | ||||
-rw-r--r-- | crypto/test/src/test/PkixPolicyMappingTest.cs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/crypto/test/src/math/test/PrimesTest.cs b/crypto/test/src/math/test/PrimesTest.cs index 4456ef2c1..6854e160b 100644 --- a/crypto/test/src/math/test/PrimesTest.cs +++ b/crypto/test/src/math/test/PrimesTest.cs @@ -142,7 +142,7 @@ namespace Org.BouncyCastle.Math.Tests continue; } - throw e; + throw; } } diff --git a/crypto/test/src/test/BaseBlockCipherTest.cs b/crypto/test/src/test/BaseBlockCipherTest.cs index 87fb01056..aca912131 100644 --- a/crypto/test/src/test/BaseBlockCipherTest.cs +++ b/crypto/test/src/test/BaseBlockCipherTest.cs @@ -115,9 +115,9 @@ namespace Org.BouncyCastle.Tests + Hex.ToHexString(cText)); } } - catch (TestFailedException e) + catch (TestFailedException) { - throw e; + throw; } catch (Exception e) { diff --git a/crypto/test/src/test/PkixPolicyMappingTest.cs b/crypto/test/src/test/PkixPolicyMappingTest.cs index 4dbfe0ad5..66e09309c 100644 --- a/crypto/test/src/test/PkixPolicyMappingTest.cs +++ b/crypto/test/src/test/PkixPolicyMappingTest.cs @@ -144,9 +144,9 @@ namespace Org.BouncyCastle.Tests return ""; } - catch (TestFailedException e) + catch (TestFailedException) { - throw e; + throw; } catch (Exception e) { |