We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ab1a0b commit 245a871Copy full SHA for 245a871
VerbalExpressions/VerbalExpressions.cs
@@ -253,7 +253,7 @@ public VerbalExpressions Range(params object[] arguments)
253
throw new ArgumentNullException("arguments");
254
}
255
256
- if (arguments.Length == 1 || arguments.Length > 3)
+ if (arguments.Length == 1)
257
{
258
throw new ArgumentOutOfRangeException("arguments");
259
@@ -280,6 +280,11 @@ public VerbalExpressions Range(params object[] arguments)
280
.OrderBy(s => s)
281
.ToArray();
282
283
+ if (sanitizedStrings.Length > 3)
284
+ {
285
+ throw new ArgumentOutOfRangeException("arguments");
286
+ }
287
+
288
if (!sanitizedStrings.Any())
289
290
return this;
0 commit comments