diff options
| author | mammo0 <marc.ammon@hotmail.de> | 2023-03-15 11:54:44 +0100 |
|---|---|---|
| committer | mammo0 <marc.ammon@hotmail.de> | 2023-03-15 11:54:44 +0100 |
| commit | 1c57c52474799fb7bcba3c5f08098e348f214590 (patch) | |
| tree | 4fcd1d447c866b70d1f6e8cd9329aba2bf204ef8 /tests | |
| parent | 79d34c590ea4d0b1772fff77c9f5b52991d460b4 (diff) | |
fixed stacking test cases
Movies should not be stacked if no parttype is given.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.Naming.Tests/Video/StackTests.cs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/Jellyfin.Naming.Tests/Video/StackTests.cs b/tests/Jellyfin.Naming.Tests/Video/StackTests.cs index 368c3592e..97b52f749 100644 --- a/tests/Jellyfin.Naming.Tests/Video/StackTests.cs +++ b/tests/Jellyfin.Naming.Tests/Video/StackTests.cs @@ -236,7 +236,7 @@ namespace Jellyfin.Naming.Tests.Video } [Fact] - public void TestFalsePositive() + public void TestMissingParttype() { var files = new[] { @@ -248,9 +248,8 @@ namespace Jellyfin.Naming.Tests.Video var result = StackResolver.ResolveFiles(files, _namingOptions).ToList(); - Assert.Single(result); - - TestStackInfo(result[0], "300", 3); + // There should be no stack, because all files should be treated as separate movies + Assert.Empty(result); } [Fact] @@ -297,11 +296,11 @@ namespace Jellyfin.Naming.Tests.Video var result = StackResolver.ResolveFiles(files, _namingOptions).ToList(); - Assert.Equal(3, result.Count); + // Only 'Bad Boys (2006)' and '300 (2006)' should be in the stack + Assert.Equal(2, result.Count); TestStackInfo(result[0], "300 (2006)", 4); - TestStackInfo(result[1], "300", 3); - TestStackInfo(result[2], "Bad Boys (2006)", 4); + TestStackInfo(result[1], "Bad Boys (2006)", 4); } [Fact] |
