NUnit.Framework.Constraints.SamePathOrUnderConstraint.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 ( !(actual is string) )
                return false;

            return IsSamePathOrUnder( expected, (string) actual );
        }