1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04:00
This commit is contained in:
Qstick
2021-08-03 00:43:28 -04:00
committed by Mark McDowall
parent 878d1561aa
commit 1c22a1ec0d
1201 changed files with 5620 additions and 4303 deletions
@@ -64,6 +64,7 @@ namespace NzbDrone.Core.Test.MetadataSource.SkyHook
series.Network.Should().NotBeNullOrWhiteSpace();
series.Runtime.Should().BeGreaterThan(0);
series.TitleSlug.Should().NotBeNullOrWhiteSpace();
//series.TvRageId.Should().BeGreaterThan(0);
series.TvdbId.Should().BeGreaterThan(0);
}
@@ -26,6 +26,7 @@ namespace NzbDrone.Core.Test.MetadataSource.SkyHook
[TestCase("Mr. D", "Mr. D")]
[TestCase("Rob & Big", "Rob & Big")]
[TestCase("M*A*S*H", "M*A*S*H")]
//[TestCase("imdb:tt0436992", "Doctor Who (2005)")]
[TestCase("tvdb:78804", "Doctor Who (2005)")]
[TestCase("tvdbid:78804", "Doctor Who (2005)")]
@@ -64,14 +65,13 @@ namespace NzbDrone.Core.Test.MetadataSource.SkyHook
{
TvdbId = tvdbId
};
Mocker.GetMock<ISeriesService>().Setup(c => c.FindByTvdbId(tvdbId)).Returns(existingSeries);
var result = Subject.SearchForNewSeries("tvdbid: " + tvdbId);
result.Should().Contain(existingSeries);
result.Should().ContainSingle(c => c.TvdbId == tvdbId);
}
}
}