瀏覽代碼

move the split usage to the proper location

dkanada 5 年之前
父節點
當前提交
536237c35d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs

+ 2 - 2
tests/Jellyfin.Server.Implementations.Tests/IO/ManagedFileSystemTests.cs

@@ -31,8 +31,8 @@ namespace Jellyfin.Server.Implementations.Tests.IO
 
             if (MediaBrowser.Common.System.OperatingSystem.Id == OperatingSystemId.Windows)
             {
-                var expectedWindowsPath = expectedAbsolutePath.Replace('/', '\\').Split(':')[1];
-                Assert.Equal(expectedWindowsPath, generatedPath);
+                var expectedWindowsPath = expectedAbsolutePath.Replace('/', '\\');
+                Assert.Equal(expectedWindowsPath, generatedPath.Split(':')[1]);
             }
             else
             {