Enum ToleranceMode
Modes in which the tolerance value for a comparison can be interpreted.
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public enum ToleranceMode
Fields
Name | Description |
---|---|
Linear | The tolerance is used as a numeric range within which two compared values are considered to be equal. |
Percent | Interprets the tolerance as the percentage by which the two compared values my deviate from each other. |
Ulps | Compares two values based in their distance in representable numbers. |
Unset | The tolerance was created with a value, without specifying how the value would be used. This is used to prevent setting the mode more than once and is generally changed to Linear upon execution of the test. |