Class InRangeException
Exception thrown when Assert.InRange fails.
public class InRangeException : XunitException, ISerializable, IAssertionException
- Inheritance
-
InRangeException
- Implements
- Inherited Members
Methods
ForValueNotInRange(object, object, object)
Creates a new instance of the InRangeException class to be thrown when the given value is not in the given range.
public static InRangeException ForValueNotInRange(object actual, object low, object high)
Parameters
actualobjectThe actual object value
lowobjectThe low value of the range
highobjectThe high value of the range