diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-04-22 01:23:24 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-04-22 01:24:21 +0200 |
| commit | b323044139fd7a0b63a717101f7ccb7f03f3f125 (patch) | |
| tree | 5300857bbba66a3d1d4f0c4929aa0a5749bc6c3a /tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs | |
| parent | 95ab603a40b96499e3a3b732f31aacc458ca8a2c (diff) | |
Reduce string allocations/fs lookups in resolve code
Diffstat (limited to 'tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs')
| -rw-r--r-- | tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs b/tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs index 876519215..c393742eb 100644 --- a/tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs +++ b/tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs @@ -6,6 +6,7 @@ using MediaBrowser.Controller.Entities.TV; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Providers; using MediaBrowser.Model.Entities; +using MediaBrowser.Model.IO; using Moq; using Xunit; @@ -28,7 +29,10 @@ namespace Jellyfin.Server.Implementations.Tests.Library { Parent = parent, CollectionType = CollectionType.TvShows, - Path = "All My Children/Season 01/Extras/All My Children S01E01 - Behind The Scenes.mkv" + FileInfo = new FileSystemMetadata() + { + FullName = "All My Children/Season 01/Extras/All My Children S01E01 - Behind The Scenes.mkv" + } }; Assert.Null(episodeResolver.Resolve(itemResolveArgs)); @@ -48,7 +52,10 @@ namespace Jellyfin.Server.Implementations.Tests.Library { Parent = series, CollectionType = CollectionType.TvShows, - Path = "Extras/Extras S01E01.mkv" + FileInfo = new FileSystemMetadata() + { + FullName = "Extras/Extras S01E01.mkv" + } }; Assert.NotNull(episodeResolver.Resolve(itemResolveArgs)); } |
