Class NotInRangeException
Exception thrown when Assert.NotInRange fails.
public class NotInRangeException : XunitException, ISerializable, IAssertionException
- Inheritance
-
NotInRangeException
- Implements
- Inherited Members
Methods
ForValueInRange(object, object, object)
Creates a new instance of the NotInRangeException class to be thrown when a value was unexpected with the range of two other values.
public static NotInRangeException ForValueInRange(object actual, object low, object high)
Parameters
actualobjectThe actual object value
lowobjectThe low value of the range
highobjectThe high value of the range