Show / Hide Table of Contents

Class NotInRangeException

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

Inheritance
Object
XunitException
NotInRangeException
Inherited Members
XunitException.StackTrace
XunitException.UserMessage
XunitException.ToString()
Namespace: Xunit.Sdk
Assembly: xunit.assert.dll
Syntax
public class NotInRangeException : XunitException

Constructors

| Improve this Doc View Source

NotInRangeException(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 Source

Actual

Gets the actual object value

Declaration
public string Actual { get; }
Property Value
Type Description
String
| Improve this Doc View Source

High

Gets the high value of the range

Declaration
public string High { get; }
Property Value
Type Description
String
| Improve this Doc View Source

Low

Gets the low value of the range

Declaration
public string Low { get; }
Property Value
Type Description
String
| Improve this Doc View Source

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("").

  • Improve this Doc
  • View Source
Back to top Generated by DocFX