Files
SabreTools.IO/SabreTools.Matching.Test/FilePathMatchTests.cs

22 lines
516 B
C#
Raw Permalink Normal View History

using System.IO;
using Xunit;
namespace SabreTools.Matching.Test
{
/// <remarks>
2025-11-13 08:56:30 -05:00
/// All other test cases are covered by <see cref="PathMatchTests"/>
/// </remarks>
public class FilePathMatchTests
{
[Fact]
public void ConstructorFormatsNeedle()
{
string needle = "test";
string expected = $"{Path.DirectorySeparatorChar}{needle}";
var fpm = new FilePathMatch(needle);
Assert.Equal(expected, fpm.Needle);
}
}
}