diff --git a/NzbDrone.Core.Test/EpisodeProviderTest.cs b/NzbDrone.Core.Test/EpisodeProviderTest.cs index 9ae4b9512..4ddd504c1 100644 Binary files a/NzbDrone.Core.Test/EpisodeProviderTest.cs and b/NzbDrone.Core.Test/EpisodeProviderTest.cs differ diff --git a/NzbDrone.Core.Test/MediaFileProviderTests.cs b/NzbDrone.Core.Test/MediaFileProviderTests.cs index f308b886b..fd9a1b87e 100644 --- a/NzbDrone.Core.Test/MediaFileProviderTests.cs +++ b/NzbDrone.Core.Test/MediaFileProviderTests.cs @@ -324,12 +324,15 @@ namespace NzbDrone.Core.Test public void scan_media_job_should_not_scan_new_series() { var mocker = new AutoMoqer(); + IQueryable fakeSeries = Builder.CreateListOfSize(2) + .WhereTheFirst(1).Has(c => c.Episodes = new List()) + .AndTheNext(1).Has(c => c.Episodes = Builder.CreateListOfSize(10).Build()) + .Build().AsQueryable(); mocker.GetMock() - .Setup(c => c.GetAllSeries()) - .Returns(Builder.CreateListOfSize(2) - .WhereTheFirst(1).Has(c => c.LastInfoSync = DateTime.Now).Build().AsQueryable()); + .Setup(c => c.GetAllSeries()).Returns(fakeSeries); + mocker.GetMock(MockBehavior.Strict) - .Setup(c => c.Scan(It.Is(s => s.LastInfoSync != null))).Returns(new List()).Verifiable(); + .Setup(c => c.Scan(fakeSeries.ToList()[1])).Returns(new List()).Verifiable(); mocker.Resolve().Start(new ProgressNotification("test"), 0);