Table of Contents

Class DefaultFloatingPointToleranceAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Sets the tolerance used by default when checking the equality of floating point values within the test assembly, fixture or method.

[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class DefaultFloatingPointToleranceAttribute : NUnitAttribute, IApplyToContext
Inheritance
DefaultFloatingPointToleranceAttribute
Implements
Inherited Members

Constructors

DefaultFloatingPointToleranceAttribute(double)

Construct specifying an amount

public DefaultFloatingPointToleranceAttribute(double amount)

Parameters

amount double

Methods

ApplyToContext(TestExecutionContext)

Apply changes to the TestExecutionContext

public void ApplyToContext(TestExecutionContext context)

Parameters

context TestExecutionContext

The TestExecutionContext