ToleranceMode Enum

Summary

Modes in which the tolerance value for a comparison can be interpreted.
Namespace
TCLite.Constraints
Interfaces
  • IComparable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph BT Type-->Base0["Enum"] Base0-->Base1["ValueType"] Base1-->Base2["object"] Type-.->Interface0["IComparable"] Type-.->Interface1["IFormattable"] Type-.->Interface2["IConvertible"] Type["ToleranceMode"] class Type type-node

Syntax

public enum ToleranceMode

Fields

Name Constant Value Summary
Default 0
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.
static
Linear 1
The tolerance is used as a numeric range within which two compared values are considered to be equal.
static
Percent 2
Interprets the tolerance as the percentage by which the two compared values my deviate from each other.
static
Ulps 3
Compares two values based in their distance in representable numbers.
static