From 8a605ffb68a795e82afb53a1d7363a7e593d27b7 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 27 Mar 2024 11:52:06 +0700 Subject: Refactoring in Crypto.Tests --- crypto/test/src/crypto/test/Ed25519Test.cs | 2 +- crypto/test/src/crypto/test/Ed448Test.cs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'crypto') 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)); } } -- cgit 1.4.1