<PackageReference Include="NUnit" Version="4.2.2" />

SamePathConstraint

Summary description for SamePathConstraint.
using NUnit.Framework.Internal; using System.Runtime.CompilerServices; namespace NUnit.Framework.Constraints { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class SamePathConstraint : PathConstraint { public override string Description => "Path matching " + MsgUtils.FormatValue(expected); public SamePathConstraint(string expected) : base(expected) { } [System.Runtime.CompilerServices.NullableContext(2)] protected override bool Matches(string actual) { if (actual != null) return StringUtil.StringsEqual(Canonicalize(expected), Canonicalize(actual), caseInsensitive); return false; } } }