Class NotInRangeException
Exception thrown when a value is unexpectedly in the given range.
Namespace: Xunit.Sdk
Assembly: xunit.assert.dll
Syntax
public class NotInRangeException : XunitException
Constructors
| Improve this Doc View SourceNotInRangeException(Object, Object, Object)
Creates a new instance of the NotInRangeException class.
Declaration
public NotInRangeException(object actual, object low, object high)
Parameters
Type | Name | Description |
---|---|---|
Object | actual | The actual object value |
Object | low | The low value of the range |
Object | high | The high value of the range |
Properties
| Improve this Doc View SourceActual
Gets the actual object value
Declaration
public string Actual { get; }
Property Value
Type | Description |
---|---|
String |
High
Gets the high value of the range
Declaration
public string High { get; }
Property Value
Type | Description |
---|---|
String |
Low
Gets the low value of the range
Declaration
public string Low { get; }
Property Value
Type | Description |
---|---|
String |
Message
Gets a message that describes the current exception.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
String | The error message that explains the reason for the exception, or an empty string(""). |