<PackageReference Include="NUnit" Version="5.0.0" />

System.ArgumentOutOfRangeExceptionExtensions

Extension methods for ArgumentOutOfRangeException.

public static void ThrowIfGreaterThan<T>(T value, T other, string paramName = null) where T : IComparable<T>

public static void ThrowIfGreaterThanOrEqual<T>(T value, T other, string paramName = null) where T : IComparable<T>

public static void ThrowIfLessThan<T>(T value, T other, string paramName = null) where T : IComparable<T>

public static void ThrowIfNegative<T>(T value, string paramName = null) where T : IComparable<T>

public static void ThrowIfNegativeOrZero<T>(T value, string paramName = null) where T : IComparable<T>

public static void ThrowIfZero<T>(T value, string paramName = null) where T : IComparable<T>