浏览代码

Add a test case which doesn't specify the parent directory.

Ben Magee 5 年之前
父节点
当前提交
140673fcf6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/Emby.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs

+ 1 - 0
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,