mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Removed upcoming, fixed broken test
This commit is contained in:
parent
82ae91dd6e
commit
8a3edaebbf
10 changed files with 4 additions and 198 deletions
|
@ -29,10 +29,9 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
.With(s => s.Id = 12)
|
||||
.Build();
|
||||
|
||||
|
||||
Mocker.GetMock<ISeriesRepository>()
|
||||
.Setup(p => p.Get(series.Id));
|
||||
|
||||
.Setup(p => p.Get(series.Id))
|
||||
.Returns(series);
|
||||
|
||||
Mocker.GetMock<DiskScanProvider>()
|
||||
.Setup(p => p.Scan(series))
|
||||
|
@ -120,14 +119,10 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
.Setup(s => s.Scan(series[1]))
|
||||
.Returns(new List<EpisodeFile>());
|
||||
|
||||
|
||||
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), null);
|
||||
|
||||
|
||||
|
||||
Mocker.VerifyAllMocks();
|
||||
Mocker.GetMock<DiskScanProvider>().Verify(s => s.Scan(It.IsAny<Series>()), Times.Exactly(2));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue