aboutsummaryrefslogtreecommitdiffstats
path: root/tests/slskd.Tests.Unit/Common/FileSafety/StripPathRootTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/slskd.Tests.Unit/Common/FileSafety/StripPathRootTests.cs')
-rw-r--r--tests/slskd.Tests.Unit/Common/FileSafety/StripPathRootTests.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/slskd.Tests.Unit/Common/FileSafety/StripPathRootTests.cs b/tests/slskd.Tests.Unit/Common/FileSafety/StripPathRootTests.cs
index f3638c9e..1ec2021d 100644
--- a/tests/slskd.Tests.Unit/Common/FileSafety/StripPathRootTests.cs
+++ b/tests/slskd.Tests.Unit/Common/FileSafety/StripPathRootTests.cs
@@ -15,6 +15,14 @@ public partial class FileSafetyTests
Assert.NotNull(result);
}
+ [Fact]
+ public void Returns_Null_Given_Null_Path()
+ {
+ var result = FileSafety.StripPathRoot(null);
+
+ Assert.Null(result);
+ }
+
[Theory]
[InlineData("C:\\Music\\Artist", "Music/Artist")]
[InlineData("C:/Music/Artist", "Music/Artist")]