From bf9c5285936ce8884e68f60666d40c5f9118ac56 Mon Sep 17 00:00:00 2001 From: SenorSmartyPants Date: Thu, 23 Jun 2022 11:38:14 -0500 Subject: [PATCH] Test for episode extras with trailing number Fix test typo --- .../Library/LibraryManager/FindExtrasTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Jellyfin.Server.Implementations.Tests/Library/LibraryManager/FindExtrasTests.cs b/tests/Jellyfin.Server.Implementations.Tests/Library/LibraryManager/FindExtrasTests.cs index d1b75ec33e..3232c50943 100644 --- a/tests/Jellyfin.Server.Implementations.Tests/Library/LibraryManager/FindExtrasTests.cs +++ b/tests/Jellyfin.Server.Implementations.Tests/Library/LibraryManager/FindExtrasTests.cs @@ -399,6 +399,7 @@ public class FindExtrasTests "/series/Dexter/Dexter - S02E05-clip.mkv", "/series/Dexter/Dexter - S03E05/Dexter - S03E05 - Fifth.mkv", "/series/Dexter/Dexter - S03E05/Dexter - S03E05 - Fifth-featurette.mkv", + "/series/Dexter/Dexter - S03E05/Dexter - S03E05 - Fifth-featurette2.mkv", }; var files = paths.Select(p => new FileSystemMetadata @@ -439,9 +440,10 @@ public class FindExtrasTests Folder folderOwner = new Folder { Name = "Dexter - S03E05", Path = "/series/Dexter/Dexter - S03E05", IsInMixedFolder = true }; extras = _libraryManager.FindExtras(folderOwner, files, new DirectoryService(_fileSystemMock.Object)).OrderBy(e => e.ExtraType).ToList(); - Assert.Single(extras); + Assert.Equal(2, extras.Count); Assert.Equal(ExtraType.Clip, extras[0].ExtraType); Assert.Equal(typeof(Video), extras[0].GetType()); Assert.Equal("/series/Dexter/Dexter - S03E05/Dexter - S03E05 - Fifth-featurette.mkv", extras[0].Path); + Assert.Equal("/series/Dexter/Dexter - S03E05/Dexter - S03E05 - Fifth-featurette2.mkv", extras[1].Path); } }