mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
test clean up.
This commit is contained in:
parent
7eb0d62c53
commit
a221994cd7
90 changed files with 779 additions and 804 deletions
|
@ -1,6 +1,4 @@
|
|||
// ReSharper disable RedundantUsingDirective
|
||||
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Autofac;
|
||||
|
@ -15,7 +13,7 @@ using NzbDrone.Test.Common;
|
|||
namespace NzbDrone.Core.Test.ProviderTests
|
||||
{
|
||||
[TestFixture]
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
public class TvDbProviderTest : CoreTest
|
||||
{
|
||||
private TvDbProxy tvDbProxy;
|
||||
|
@ -56,10 +54,10 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
[Test]
|
||||
public void no_search_result()
|
||||
{
|
||||
//act
|
||||
|
||||
var result = tvDbProxy.SearchSeries(Guid.NewGuid().ToString());
|
||||
|
||||
//assert
|
||||
|
||||
result.Should().BeEmpty();
|
||||
}
|
||||
|
||||
|
@ -67,11 +65,9 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
[Test]
|
||||
public void none_unique_season_episode_number()
|
||||
{
|
||||
//act
|
||||
|
||||
var result = tvDbProxy.GetEpisodes(75978);//Family guy
|
||||
|
||||
//Asserts that when episodes are grouped by Season/Episode each group contains maximum of
|
||||
//one item.
|
||||
result.GroupBy(e => e.SeasonNumber.ToString("000") + e.EpisodeNumber.ToString("000"))
|
||||
.Max(e => e.Count()).Should().Be(1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue