Class DefaultFloatingPointToleranceAttribute
Sets the tolerance used by default when checking the equality of floating point values within the test assembly, fixture or method.
Implements
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class DefaultFloatingPointToleranceAttribute : NUnitAttribute, IApplyToContext
Constructors
View SourceDefaultFloatingPointToleranceAttribute(double)
Construct specifying an amount
Declaration
public DefaultFloatingPointToleranceAttribute(double amount)
Parameters
Type | Name | Description |
---|---|---|
double | amount |
Methods
View SourceApplyToContext(TestExecutionContext)
Apply changes to the TestExecutionContext
Declaration
public void ApplyToContext(TestExecutionContext context)
Parameters
Type | Name | Description |
---|---|---|
TestExecutionContext | context | The TestExecutionContext |