UnityEngine.NUnit.Framework.Constraints.LessThanOrEqualConstraint.Matches C# (CSharp) Method

Matches() public method

Test whether the constraint is satisfied by a given value
public Matches ( object actual ) : bool
actual object The value to be tested
return bool
        public override bool Matches(object actual)
        {
            this.actual = actual;

            if (expected == null || actual == null)
                throw new ArgumentException("Cannot compare using a null reference");

            return comparer.Compare(actual, expected) <= 0;
        }
    }