diff --git a/src/client/spark_core/utils/Exceptions/ExceptionAssert.cs b/src/client/spark_core/utils/Exceptions/ExceptionAssert.cs index 822210896..6bbb6f7f3 100644 --- a/src/client/spark_core/utils/Exceptions/ExceptionAssert.cs +++ b/src/client/spark_core/utils/Exceptions/ExceptionAssert.cs @@ -108,7 +108,7 @@ namespace mbts.utils { GreaterThanEqualTo(argument, value, name); } - public static void LessThan(T argument, T value, string name) where T : IComparable { + public static void LessThan(T argument, T value, [CallerArgumentExpression(nameof(argument))]string name = "") where T : IComparable { if (argument.CompareTo(value) >= 0) throw new ArgumentException($"Must be less than {value}.", name); }