diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-04-30 20:45:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-30 20:45:43 +0200 |
| commit | 360d80c873c04a9f61ded160615f161bfcdb4f74 (patch) | |
| tree | da85c9fbedd816962494f14fe11a64f0856bf058 /tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs | |
| parent | 13d09cbc473c51880a6b31653302eb72422234e7 (diff) | |
| parent | b323044139fd7a0b63a717101f7ccb7f03f3f125 (diff) | |
Merge pull request #5890 from Bond-009/filesystem
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)); } |
