C# Класс UnityEngine.NUnit.Framework.Constraints.Tolerance

The Tolerance class generalizes the notion of a tolerance within which an equality test succeeds. Normally, it is used with numeric types, but it can be used with any type that supports taking a difference between two objects and comparing that difference to a value.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Tolerance ( object amount ) : System

Constructs a linear tolerance of a specdified amount

Приватные методы

Метод Описание
CheckLinearAndNumeric ( ) : void

Tests that the current Tolerance is linear with a numeric value, throwing an exception if it is not.

Tolerance ( object amount, ToleranceMode mode ) : System

Constructs a tolerance given an amount and ToleranceMode

Описание методов

Tolerance() публичный Метод

Constructs a linear tolerance of a specdified amount
public Tolerance ( object amount ) : System
amount object
Результат System