summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-03-27 11:52:06 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-03-27 11:52:06 +0700
commit8a605ffb68a795e82afb53a1d7363a7e593d27b7 (patch)
tree1b2eba56ffefc26296ca4f15402499f63fd1a88d
parentRefactoring in Asn1.Mozilla (diff)
downloadBouncyCastle.NET-ed25519-8a605ffb68a795e82afb53a1d7363a7e593d27b7.tar.xz
Refactoring in Crypto.Tests
-rw-r--r--crypto/test/src/crypto/test/Ed25519Test.cs2
-rw-r--r--crypto/test/src/crypto/test/Ed448Test.cs12
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)); } }