C# Class NFluent.FloatSpecificCheckExtensions

Provides specific check methods to be executed on an float value.
ファイルを表示 Open project: tpierrain/NFluent

Public Methods

Method Description
IsCloseTo ( this check, Double expected, Double within ) : ICheckLink>

Determines wehther the actual number is close to an expected value within a given within.

IsFinite ( this check ) : ICheckLink>

Determines whether the specified number evaluates to a value that is finite (i.e. not infinity).

IsNaN ( this check ) : ICheckLink>

Determines whether the specified number evaluates to a value that is not a number (NaN).

Method Details

IsCloseTo() public static method

Determines wehther the actual number is close to an expected value within a given within.
public static IsCloseTo ( this check, Double expected, Double within ) : ICheckLink>
check this The fluent check to be extended.
expected Double The expected value.
within Double The within.
return ICheckLink>

IsFinite() public static method

Determines whether the specified number evaluates to a value that is finite (i.e. not infinity).
The specified number evaluates to a value that is infinite (i.e. equals to infinity).
public static IsFinite ( this check ) : ICheckLink>
check this The fluent check to be extended.
return ICheckLink>

IsNaN() public static method

Determines whether the specified number evaluates to a value that is not a number (NaN).
The current value is a number.
public static IsNaN ( this check ) : ICheckLink>
check this The fluent check to be extended.
return ICheckLink>