aboutsummaryrefslogtreecommitdiffstats
path: root/tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-06-03 23:18:29 -0500
committerJP Dillingham <jp@dillingham.me>2026-06-03 23:18:29 -0500
commit57c4872e2485a7284a4afc7457591fe0efe3b87a (patch)
treec645b95e844a240abf3b9456b2b285f157e89210 /tests/slskd.Tests.Unit/Common/FileSafety/IsPathTests.cs
parent31a9b5918d49650564c4b59c8ae95a16412bef9c (diff)
downloadslskd-57c4872e2485a7284a4afc7457591fe0efe3b87a.tar.gz
fix all the tests
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));
}
}
}