From 2ef4dd855571ab96dae889ca80530773694eabae Mon Sep 17 00:00:00 2001 From: Jkorf Date: Tue, 3 Nov 2026 13:34:22 +0100 Subject: [PATCH] Updated test error messages --- CryptoExchange.Net/Testing/RestRequestValidator.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CryptoExchange.Net/Testing/RestRequestValidator.cs b/CryptoExchange.Net/Testing/RestRequestValidator.cs index cc37e446..c8f4e23d 100644 --- a/CryptoExchange.Net/Testing/RestRequestValidator.cs +++ b/CryptoExchange.Net/Testing/RestRequestValidator.cs @@ -202,7 +202,7 @@ namespace CryptoExchange.Net.Testing private void CompareParameters(Dictionary expectedUrlParameters, Dictionary parameters, List? ignoreParamValidation) { if (expectedUrlParameters.Count > parameters.Count) - throw new Exception($"Url parameters count not matched. Expected: {expectedUrlParameters.Count}, Actual: {parameters.Count}"); + throw new Exception($"Parameters count not matched. Expected: {expectedUrlParameters.Count}, Actual: {parameters.Count}"); foreach (var kvp in expectedUrlParameters) { @@ -210,10 +210,10 @@ namespace CryptoExchange.Net.Testing continue; if (!parameters.TryGetValue(kvp.Key, out var value)) - throw new Exception($"Url parameter {kvp.Key} not found in actual parameters"); + throw new Exception($"Parameter {kvp.Key} not found in actual parameters"); if (Convert.ToString(kvp.Value, CultureInfo.InvariantCulture) != Convert.ToString(value, CultureInfo.InvariantCulture)) - throw new Exception($"Url parameter {kvp.Key} value not matched. Expected: {kvp.Value}, Actual: {value}"); + throw new Exception($"Parameter {kvp.Key} value not matched. Expected: {kvp.Value}, Actual: {value}"); } }