xUnit.net
Public Member Functions | Properties | List of all members
Xunit.Sdk.InRangeException Class Reference

Exception thrown when a value is unexpectedly not in the given range. More...

Inheritance diagram for Xunit.Sdk.InRangeException:
Xunit.Sdk.XunitException

Public Member Functions

 InRangeException (object actual, object low, object high)
 Creates a new instance of the InRangeException class. More...
 
- Public Member Functions inherited from Xunit.Sdk.XunitException
 XunitException ()
 Initializes a new instance of the XunitException class. More...
 
 XunitException (string userMessage)
 Initializes a new instance of the XunitException class. More...
 
override string ToString ()
 

Properties

string Actual [get]
 Gets the actual object value More...
 
string High [get]
 Gets the high value of the range More...
 
string Low [get]
 Gets the low value of the range More...
 
override string?? Message [get]
 Gets a message that describes the current exception. More...
 
- Properties inherited from Xunit.Sdk.XunitException
override string?? StackTrace [get]
 Gets a string representation of the frames on the call stack at the time the current exception was thrown. More...
 
string UserMessage [get, protected set]
 Gets the user message More...
 

Additional Inherited Members

- Protected Member Functions inherited from Xunit.Sdk.XunitException
 XunitException (string userMessage, Exception innerException)
 Initializes a new instance of the XunitException class. More...
 
 XunitException (string userMessage, string stackTrace)
 Initializes a new instance of the XunitException class. More...
 

Detailed Description

Exception thrown when a value is unexpectedly not in the given range.

Constructor & Destructor Documentation

◆ InRangeException()

Xunit.Sdk.InRangeException.InRangeException ( object  actual,
object  low,
object  high 
)
inline

Creates a new instance of the InRangeException class.

Parameters
actualThe actual object value
lowThe low value of the range
highThe high value of the range

Property Documentation

◆ Actual

string Xunit.Sdk.InRangeException.Actual
get

Gets the actual object value

◆ High

string Xunit.Sdk.InRangeException.High
get

Gets the high value of the range

◆ Low

string Xunit.Sdk.InRangeException.Low
get

Gets the low value of the range

◆ Message

override string?? Xunit.Sdk.InRangeException.Message
get

Gets a message that describes the current exception.

Returns
The error message that explains the reason for the exception, or an empty string("").

The documentation for this class was generated from the following file: