1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 01:57:21 +00:00

Fixed broken tests and removed strict mocker

This commit is contained in:
Mark McDowall 2012-12-20 21:44:59 -08:00
parent 2439b9e087
commit 8581896f58

View file

@ -27,8 +27,6 @@ public void series_specific_scan_should_scan_series()
.With(s => s.SeriesId = 12) .With(s => s.SeriesId = 12)
.Build(); .Build();
WithStrictMocker();
Mocker.GetMock<SeriesProvider>() Mocker.GetMock<SeriesProvider>()
.Setup(p => p.GetSeries(series.SeriesId)) .Setup(p => p.GetSeries(series.SeriesId))
.Returns(series); .Returns(series);
@ -54,8 +52,6 @@ public void job_with_no_target_should_scan_all_series()
.TheNext(1).With(s => s.SeriesId = 15) .TheNext(1).With(s => s.SeriesId = 15)
.Build(); .Build();
WithStrictMocker();
Mocker.GetMock<SeriesProvider>() Mocker.GetMock<SeriesProvider>()
.Setup(p => p.GetAllSeries()) .Setup(p => p.GetAllSeries())
.Returns(series); .Returns(series);
@ -82,8 +78,6 @@ public void failed_scan_should_not_terminated_job()
.TheNext(1).With(s => s.SeriesId = 15) .TheNext(1).With(s => s.SeriesId = 15)
.Build(); .Build();
WithStrictMocker();
Mocker.GetMock<SeriesProvider>() Mocker.GetMock<SeriesProvider>()
.Setup(p => p.GetAllSeries()) .Setup(p => p.GetAllSeries())
.Returns(series); .Returns(series);
@ -111,8 +105,6 @@ public void job_with_no_target_should_scan_series_with_episodes()
.TheNext(1).With(s => s.SeriesId = 15) .TheNext(1).With(s => s.SeriesId = 15)
.Build(); .Build();
WithStrictMocker();
Mocker.GetMock<SeriesProvider>() Mocker.GetMock<SeriesProvider>()
.Setup(p => p.GetAllSeries()) .Setup(p => p.GetAllSeries())
.Returns(series); .Returns(series);