예제 #1
0
 /// <summary>
 /// Verifies that a value is within a given range.
 /// </summary>
 /// <typeparam name="T">The type of the value to be compared</typeparam>
 /// <param name="actual">The actual value to be evaluated</param>
 /// <param name="low">The (inclusive) low value of the range</param>
 /// <param name="high">The (inclusive) high value of the range</param>
 /// <exception cref="InRangeException">Thrown when the value is not in the given range</exception>
 public static void InRange <T>(this IAssert assert, T actual, T low, T high) where T : IComparable
 {
     assert.InRange(actual, low, high, GetComparer <T>());
 }