diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-03-27 11:52:06 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-03-27 11:52:06 +0700 |
commit | 8a605ffb68a795e82afb53a1d7363a7e593d27b7 (patch) | |
tree | 1b2eba56ffefc26296ca4f15402499f63fd1a88d /crypto/test | |
parent | Refactoring in Asn1.Mozilla (diff) | |
download | BouncyCastle.NET-ed25519-8a605ffb68a795e82afb53a1d7363a7e593d27b7.tar.xz |
Refactoring in Crypto.Tests
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/crypto/test/Ed25519Test.cs | 2 | ||||
-rw-r--r-- | crypto/test/src/crypto/test/Ed448Test.cs | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/crypto/test/src/crypto/test/Ed25519Test.cs b/crypto/test/src/crypto/test/Ed25519Test.cs index 1402cce68..f1cca0aab 100644 --- a/crypto/test/src/crypto/test/Ed25519Test.cs +++ b/crypto/test/src/crypto/test/Ed25519Test.cs @@ -78,7 +78,7 @@ namespace Org.BouncyCastle.Crypto.Tests case Ed25519.Algorithm.Ed25519ph: return new Ed25519phSigner(context); default: - throw new ArgumentException("algorithm"); + throw new ArgumentException(nameof(algorithm)); } } diff --git a/crypto/test/src/crypto/test/Ed448Test.cs b/crypto/test/src/crypto/test/Ed448Test.cs index 6ecbdebf7..30b32474f 100644 --- a/crypto/test/src/crypto/test/Ed448Test.cs +++ b/crypto/test/src/crypto/test/Ed448Test.cs @@ -81,12 +81,12 @@ namespace Org.BouncyCastle.Crypto.Tests { switch (algorithm) { - case Ed448.Algorithm.Ed448: - return new Ed448Signer(context); - case Ed448.Algorithm.Ed448ph: - return new Ed448phSigner(context); - default: - throw new ArgumentException("algorithm"); + case Ed448.Algorithm.Ed448: + return new Ed448Signer(context); + case Ed448.Algorithm.Ed448ph: + return new Ed448phSigner(context); + default: + throw new ArgumentException(nameof(algorithm)); } } |