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

SamePathConstraint

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