From 7a71593d29a0619f4afc3655221572aa7d401897 Mon Sep 17 00:00:00 2001 From: Tim Sirmovics <10243286+TimSirmovics@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:06:40 +1100 Subject: [PATCH] Fix string too long exception message --- src/projects/EnsureThat/ExceptionMessages.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projects/EnsureThat/ExceptionMessages.cs b/src/projects/EnsureThat/ExceptionMessages.cs index 715b0ec..1171931 100644 --- a/src/projects/EnsureThat/ExceptionMessages.cs +++ b/src/projects/EnsureThat/ExceptionMessages.cs @@ -35,7 +35,7 @@ public static class ExceptionMessages public static string Strings_IsNotNullOrEmpty_Failed { get; } = "The string can't be null or empty."; public static string Strings_IsNotEmptyOrWhiteSpace_Failed { get; } = "The string can't be empty or consist of only whitespace characters."; public static string Strings_HasLengthBetween_Failed_ToShort { get; } = "The string is not long enough. Must be between '{0}' and '{1}' but was '{2}' characters long."; - public static string Strings_HasLengthBetween_Failed_ToLong { get; } = "The string is too long. Must be between '{0}' and '{1}'. Must be between '{0}' and '{1}' but was '{2}' characters long."; + public static string Strings_HasLengthBetween_Failed_ToLong { get; } = "The string is too long. Must be between '{0}' and '{1}' but was '{2}' characters long."; public static string Strings_Matches_Failed { get; } = "Value '{0}' does not match '{1}'"; public static string Strings_IsNotEmpty_Failed { get; } = "Empty String is not allowed."; public static string Strings_IsGuid_Failed { get; } = "Value '{0}' is not a valid GUID.";