void Clamp(IComparable v, IComparable min, IComparable max, IComparable expected) { IComparable result = default; Test.IfNot.Action.ThrowsException(() => result = v.Clamp(min, max), out Exception ex); Test.If.Value.IsEqual(result, expected); }