mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Fixed broken tests.
This commit is contained in:
parent
ffadccb6f7
commit
f015739285
@ -23,7 +23,7 @@ public void SeriesSearch_success()
|
|||||||
|
|
||||||
var notification = new ProgressNotification("Series Search");
|
var notification = new ProgressNotification("Series Search");
|
||||||
|
|
||||||
Mocker.GetMock<EpisodeProvider>()
|
Mocker.GetMock<SeasonProvider>()
|
||||||
.Setup(c => c.GetSeasons(1)).Returns(seasons);
|
.Setup(c => c.GetSeasons(1)).Returns(seasons);
|
||||||
|
|
||||||
Mocker.GetMock<SeasonProvider>()
|
Mocker.GetMock<SeasonProvider>()
|
||||||
@ -50,7 +50,7 @@ public void SeriesSearch_no_seasons()
|
|||||||
|
|
||||||
var notification = new ProgressNotification("Series Search");
|
var notification = new ProgressNotification("Series Search");
|
||||||
|
|
||||||
Mocker.GetMock<EpisodeProvider>()
|
Mocker.GetMock<SeasonProvider>()
|
||||||
.Setup(c => c.GetSeasons(1)).Returns(seasons);
|
.Setup(c => c.GetSeasons(1)).Returns(seasons);
|
||||||
|
|
||||||
//Act
|
//Act
|
||||||
@ -65,7 +65,7 @@ public void SeriesSearch_no_seasons()
|
|||||||
[Test]
|
[Test]
|
||||||
public void SeriesSearch_should_not_search_for_season_0()
|
public void SeriesSearch_should_not_search_for_season_0()
|
||||||
{
|
{
|
||||||
Mocker.GetMock<EpisodeProvider>()
|
Mocker.GetMock<SeasonProvider>()
|
||||||
.Setup(c => c.GetSeasons(It.IsAny<int>()))
|
.Setup(c => c.GetSeasons(It.IsAny<int>()))
|
||||||
.Returns(new List<int> { 0, 1, 2 });
|
.Returns(new List<int> { 0, 1, 2 });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user