Table of Contents

Class NotInRangeException

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

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

actual object

The actual object value

low object

The low value of the range

high object

The high value of the range

Returns

NotInRangeException