aboutsummaryrefslogtreecommitdiffstats
path: root/tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-06-04 07:48:47 -0500
committerJP Dillingham <jp@dillingham.me>2026-06-04 07:48:47 -0500
commit7e0bc2227cc8593b65e3acd587cbc783e561ca6a (patch)
treed3646d726ac543320a7513387c0342c57809bcda /tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs
parent78561f600754241efdf06c0fcee5ffdbdccda1b6 (diff)
parent9a08d5029880c2be008685990f0c83f221ec0e75 (diff)
downloadslskd-7e0bc2227cc8593b65e3acd587cbc783e561ca6a.tar.gz
Merge branch 'destination' of github.com:slskd/slskd into destination
Diffstat (limited to 'tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs')
-rw-r--r--tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs b/tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs
index 42eab9b8..d4874211 100644
--- a/tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs
+++ b/tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs
@@ -33,8 +33,8 @@ public partial class FileSafetyTests
[InlineData("\\\\server\\share\\用户\\音乐")]
public void IsAbsolute_NotRelative(string path)
{
- Assert.True(FileSafety.IsPathAbsolute(path, OSPlatform.Windows));
- Assert.False(FileSafety.IsPathRelative(path, OSPlatform.Windows));
+ Assert.True(FileSafety.IsPathAbsolute(path, OperatingSystem.Windows));
+ Assert.False(FileSafety.IsPathRelative(path, OperatingSystem.Windows));
}
}
@@ -68,8 +68,8 @@ public partial class FileSafetyTests
[InlineData("D:path")] // drive-relative — no separator after colon, not absolute
public void IsRelative_NotAbsolute(string path)
{
- Assert.False(FileSafety.IsPathAbsolute(path, OSPlatform.Windows));
- Assert.True(FileSafety.IsPathRelative(path, OSPlatform.Windows));
+ Assert.False(FileSafety.IsPathAbsolute(path, OperatingSystem.Windows));
+ Assert.True(FileSafety.IsPathRelative(path, OperatingSystem.Windows));
}
}
}
@@ -95,8 +95,8 @@ public partial class FileSafetyTests
[InlineData("//192.168.1.1/share")]
public void IsAbsolute_NotRelative(string path)
{
- Assert.True(FileSafety.IsPathAbsolute(path, OSPlatform.Linux));
- Assert.False(FileSafety.IsPathRelative(path, OSPlatform.Linux));
+ Assert.True(FileSafety.IsPathAbsolute(path, OperatingSystem.Linux));
+ Assert.False(FileSafety.IsPathRelative(path, OperatingSystem.Linux));
}
}
@@ -122,8 +122,8 @@ public partial class FileSafetyTests
[InlineData("\\Music")] // Windows root-relative — not absolute on Linux
public void IsRelative_NotAbsolute(string path)
{
- Assert.False(FileSafety.IsPathAbsolute(path, OSPlatform.Linux));
- Assert.True(FileSafety.IsPathRelative(path, OSPlatform.Linux));
+ Assert.False(FileSafety.IsPathAbsolute(path, OperatingSystem.Linux));
+ Assert.True(FileSafety.IsPathRelative(path, OperatingSystem.Linux));
}
}
}