Click or drag to resize

DoubleExtensionsIsWiderThanRange Method

Checks if the minValue and maxValue differ by more than the specified maximum range.

Namespace:  TestHelperExtensions
Assembly:  CBI.TestHelperExtensions (in CBI.TestHelperExtensions.dll) Version: 2.1.0.1
Syntax
public static bool IsWiderThanRange(
	this double maxRange,
	double minValue,
	double maxValue
)

Parameters

maxRange
Type: SystemDouble
The greatest difference to allow between the two values
minValue
Type: SystemDouble
The lower bound of the range
maxValue
Type: SystemDouble
The upper bound of the range

Return Value

Type: Boolean
True if the difference between the two values is greater than maxRange, False otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also