From 1cce58a7923999c52cfc3d2a401e43a74ba86341 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Wed, 10 Dec 2025 22:13:34 -0600 Subject: [PATCH] expand test --- .../Scheduling/PlaylistEnumeratorTests.cs | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/ErsatzTV.Core.Tests/Scheduling/PlaylistEnumeratorTests.cs b/ErsatzTV.Core.Tests/Scheduling/PlaylistEnumeratorTests.cs index a01389941..1d174815b 100644 --- a/ErsatzTV.Core.Tests/Scheduling/PlaylistEnumeratorTests.cs +++ b/ErsatzTV.Core.Tests/Scheduling/PlaylistEnumeratorTests.cs @@ -286,7 +286,7 @@ public class PlaylistEnumeratorTests } [Test] - public async Task CountForFiller_Should_Honor_Custom_Count() + public async Task CountForFiller_Should_Honor_Custom_Count_And_PlayAll() { // this isn't needed for chronological, so no need to implement anything IMediaCollectionRepository repo = Substitute.For(); @@ -316,7 +316,7 @@ public class PlaylistEnumeratorTests CollectionType = CollectionType.Collection, CollectionId = 2 }, - [FakeMovie(20)] + [FakeMovie(15)] }, { new PlaylistItem @@ -328,7 +328,19 @@ public class PlaylistEnumeratorTests CollectionType = CollectionType.Collection, CollectionId = 3 }, - [FakeMovie(30)] + [FakeMovie(20)] + }, + { + new PlaylistItem + { + Id = 4, + Index = 3, + PlaybackOrder = PlaybackOrder.Chronological, + PlayAll = true, + CollectionType = CollectionType.Collection, + CollectionId = 4 + }, + [FakeMovie(25), FakeMovie(26), FakeMovie(27)] } }; @@ -342,7 +354,7 @@ public class PlaylistEnumeratorTests batchSize: Option.None, CancellationToken.None); - enumerator.CountForFiller.ShouldBe(4); + enumerator.CountForFiller.ShouldBe(7); } private static Movie FakeMovie(int id) => new()