Summary
Returns a constraint that tests whether the actual value falls
within a specified range.
- Namespace
- TCLite
.Constraints - Containing Type
- Is_Syntax
Syntax
public static RangeConstraint<T> InRange<T>(T from, T to) where T : IComparable<T>
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
from | T | |
to | T |
Return Value
Type | Description |
---|---|
RangeConstraint |