diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-06-04 07:48:47 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-06-04 07:48:47 -0500 |
| commit | 7e0bc2227cc8593b65e3acd587cbc783e561ca6a (patch) | |
| tree | d3646d726ac543320a7513387c0342c57809bcda /tests/slskd.Tests.Unit/Common/FileSafety/SanitizePathSegmentTests.cs | |
| parent | 78561f600754241efdf06c0fcee5ffdbdccda1b6 (diff) | |
| parent | 9a08d5029880c2be008685990f0c83f221ec0e75 (diff) | |
| download | slskd-7e0bc2227cc8593b65e3acd587cbc783e561ca6a.tar.gz | |
Merge branch 'destination' of github.com:slskd/slskd into destination
Diffstat (limited to 'tests/slskd.Tests.Unit/Common/FileSafety/SanitizePathSegmentTests.cs')
| -rw-r--r-- | tests/slskd.Tests.Unit/Common/FileSafety/SanitizePathSegmentTests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/slskd.Tests.Unit/Common/FileSafety/SanitizePathSegmentTests.cs b/tests/slskd.Tests.Unit/Common/FileSafety/SanitizePathSegmentTests.cs index ecf5bdf9..7fc1c78b 100644 --- a/tests/slskd.Tests.Unit/Common/FileSafety/SanitizePathSegmentTests.cs +++ b/tests/slskd.Tests.Unit/Common/FileSafety/SanitizePathSegmentTests.cs @@ -66,7 +66,7 @@ public partial class FileSafetyTests [InlineData("пользователь", "пользователь")] public void Linux_ReturnsUnchanged_Given_Safe_Segment(string input, string expected) { - var result = FileSafety.SanitizePathSegment(input, '_', OSPlatform.Linux); + var result = FileSafety.SanitizePathSegment(input, '_', OperatingSystem.Linux); Assert.Equal(expected, result); } @@ -77,7 +77,7 @@ public partial class FileSafetyTests [InlineData("has/both\\types", "has_both_types")] public void Linux_Replaces_Slashes(string input, string expected) { - var result = FileSafety.SanitizePathSegment(input, '_', OSPlatform.Linux); + var result = FileSafety.SanitizePathSegment(input, '_', OperatingSystem.Linux); Assert.Equal(expected, result); } @@ -91,7 +91,7 @@ public partial class FileSafetyTests [InlineData("file\\name", "file_name")] public void Windows_Replaces_InvalidCharacters(string input, string expected) { - var result = FileSafety.SanitizePathSegment(input, '_', OSPlatform.Windows); + var result = FileSafety.SanitizePathSegment(input, '_', OperatingSystem.Windows); Assert.Equal(expected, result); } |
