UnityEngine.NUnit.Framework.Constraints.Tolerance.CheckLinearAndNumeric C# (CSharp) Method

CheckLinearAndNumeric() private method

Tests that the current Tolerance is linear with a numeric value, throwing an exception if it is not.
private CheckLinearAndNumeric ( ) : void
return void
        private void CheckLinearAndNumeric()
        {
            if (mode != ToleranceMode.Linear)
                throw new InvalidOperationException(mode == ToleranceMode.None
                    ? ModeMustFollowTolerance
                    : MultipleToleranceModes);

            if (!Numerics.IsNumericType(amount))
                throw new InvalidOperationException(NumericToleranceRequired);
        }