aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-05-30 15:39:20 -0500
committerJP Dillingham <jp@dillingham.me>2026-05-30 15:39:20 -0500
commita77a2d48c22b2287d8ad9125e0f9fa68f45def8b (patch)
treee45029a243e1b8dcfd707f8dd90fa99b223eea69 /tests
parent648ef46c787b0ebc96ae205a8b39b3cf5067dad2 (diff)
downloadslskd-a77a2d48c22b2287d8ad9125e0f9fa68f45def8b.tar.gz
remove deprecated common extensions
Diffstat (limited to 'tests')
-rw-r--r--tests/slskd.Tests.Unit/Common/FileSafety/LocalizePathTests.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/slskd.Tests.Unit/Common/FileSafety/LocalizePathTests.cs b/tests/slskd.Tests.Unit/Common/FileSafety/LocalizePathTests.cs
index 2df3e18f..160f2a72 100644
--- a/tests/slskd.Tests.Unit/Common/FileSafety/LocalizePathTests.cs
+++ b/tests/slskd.Tests.Unit/Common/FileSafety/LocalizePathTests.cs
@@ -22,7 +22,7 @@ public partial class FileSafetyTests
[InlineData("", "")]
public void Linux_NormalizesToForwardSlash(string input, string expected)
{
- var result = input.LocalizePath(OSPlatform.Linux);
+ var result = FileSafety.LocalizePath(input, OSPlatform.Linux);
Assert.Equal(expected, result);
}
@@ -42,7 +42,7 @@ public partial class FileSafetyTests
[InlineData("", "")]
public void Windows_NormalizesToBackslash(string input, string expected)
{
- var result = input.LocalizePath(OSPlatform.Windows);
+ var result = FileSafety.LocalizePath(input, OSPlatform.Windows);
Assert.Equal(expected, result);
}
@@ -50,7 +50,7 @@ public partial class FileSafetyTests
[Fact]
public void NullOs_UsesPlatformDefault_DoesNotThrow()
{
- var result = "foo/bar".LocalizePath();
+ var result = FileSafety.LocalizePath("foo/bar");
Assert.False(string.IsNullOrEmpty(result));
}