示例#1
0
 public static void Range_ThrowsArgumentOutOfRangeException_InvalidRange(My.ComparableStruct value)
 => Assert.Throws <ArgumentOutOfRangeException>(
     () => Enforce.Range(value, s_MaxValue, s_MinValue, "paramName"));
示例#2
0
 public static void Range_DoesNotThrow_ForInRangeValue(My.ComparableStruct value)
 => Enforce.Range(value, s_MinValue, s_MaxValue, "paramName");