The Free Software Media System - Server Backend & API
Add a test case which doesn't specify the parent directory.
Ben Magee140673fcf618
diff --git a/tests/Emby.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs b/tests/Emby.Server.Implementations.Tests/IO/ManagedFileSystemTests.csindex 586c50db6a..0044196a7f 100644--- a/tests/Emby.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs+++ b/tests/Emby.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs@@ -19,6 +19,7 @@ namespace Emby.Server.Implementations.Tests.IO[Theory][InlineData("/Volumes/Library/Sample/Music/Playlists/", "../Beethoven/Misc/Moonlight Sonata.mp3", "/Volumes/Library/Sample/Music/Beethoven/Misc/Moonlight Sonata.mp3")][InlineData("/Volumes/Library/Sample/Music/Playlists/", "../../Beethoven/Misc/Moonlight Sonata.mp3", "/Volumes/Library/Sample/Beethoven/Misc/Moonlight Sonata.mp3")]+ [InlineData("/Volumes/Library/Sample/Music/Playlists/", "Beethoven/Misc/Moonlight Sonata.mp3", "/Volumes/Library/Sample/Music/Playlists/Beethoven/Misc/Moonlight Sonata.mp3")]public void MakeAbsolutePathCorrectlyHandlesRelativeFilePaths(string folderPath,string filePath,