Class EqualNumericWithoutUsingConstraintExtensions
Extension methods for EqualNumericWithoutUsingConstraint<T>.
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
public static class EqualNumericWithoutUsingConstraintExtensions
Methods
View SourceWithin(EqualNumericWithoutUsingConstraint<int>, double)
Flag the constraint to use a tolerance when determining equality.
Declaration
public static EqualNumericWithoutUsingConstraint<double> Within(this EqualNumericWithoutUsingConstraint<int> constraint, double amount)
Parameters
Type | Name | Description |
---|---|---|
EqualNumericWithoutUsingConstraint<int> | constraint | The original constraint. |
double | amount | Tolerance value to be used |
Returns
Type | Description |
---|---|
EqualNumericWithoutUsingConstraint<double> | Original constraint promoted to double. |
Within(EqualNumericWithoutUsingConstraint<float>, double)
Flag the constraint to use a tolerance when determining equality.
Declaration
public static EqualNumericWithoutUsingConstraint<double> Within(this EqualNumericWithoutUsingConstraint<float> constraint, double amount)
Parameters
Type | Name | Description |
---|---|---|
EqualNumericWithoutUsingConstraint<float> | constraint | The original constraint. |
double | amount | Tolerance value to be used |
Returns
Type | Description |
---|---|
EqualNumericWithoutUsingConstraint<double> | Original constraint promoted to double. |