diff --git a/NzbDrone.Core.Test/SeriesProviderTest.cs b/NzbDrone.Core.Test/SeriesProviderTest.cs index d6150e029..63796e6ea 100644 --- a/NzbDrone.Core.Test/SeriesProviderTest.cs +++ b/NzbDrone.Core.Test/SeriesProviderTest.cs @@ -272,7 +272,12 @@ public void Get_Series_With_Count_AllDownloaded() var fakeQuality = Builder.CreateNew().Build(); var fakeSeries = Builder.CreateNew().With(e => e.QualityProfileId = fakeQuality.QualityProfileId).Build(); - var fakeEpisodes = Builder.CreateListOfSize(10).WhereAll().Have(e => e.SeriesId = fakeSeries.SeriesId).Have(e => e.Ignored = false).Build(); + var fakeEpisodes = Builder.CreateListOfSize(10) + .WhereAll() + .Have(e => e.SeriesId = fakeSeries.SeriesId) + .Have(e => e.Ignored = false) + .Have(e => e.AirDate = DateTime.Today.AddDays(-1)) + .Build(); db.Insert(fakeSeries); db.Insert(fakeQuality); @@ -298,9 +303,13 @@ public void Get_Series_With_Count_Half_Ignored() var fakeQuality = Builder.CreateNew().Build(); var fakeSeries = Builder.CreateNew().With(e => e.QualityProfileId = fakeQuality.QualityProfileId).Build(); var fakeEpisodes = Builder.CreateListOfSize(10) - .WhereAll().Have(e => e.SeriesId = fakeSeries.SeriesId) - .WhereTheFirst(5).Have(e => e.Ignored = false) - .WhereTheLast(5).Have(e => e.Ignored = true) + .WhereAll() + .Have(e => e.SeriesId = fakeSeries.SeriesId) + .Have(e => e.AirDate = DateTime.Today.AddDays(-1)) + .WhereTheFirst(5) + .Have(e => e.Ignored = false) + .WhereTheLast(5) + .Have(e => e.Ignored = true) .Build(); db.Insert(fakeSeries);