mirror of
https://github.com/Radarr/Radarr
synced 2024-12-22 16:02:43 +00:00
28 lines
774 B
C#
28 lines
774 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Gallio.Framework;
|
|
using MbUnit.Framework;
|
|
using MbUnit.Framework.ContractVerifiers;
|
|
using NzbDrone.Core.Providers;
|
|
|
|
namespace NzbDrone.Core.Test
|
|
{
|
|
[TestFixture]
|
|
public class TvDbControllerTest
|
|
{
|
|
[Test]
|
|
[Row("The Simpsons")]
|
|
[Row("Family Guy")]
|
|
[Row("South Park")]
|
|
[Ignore("Have to find a way to mock app path for tests.")]
|
|
public void TestSearch(string title)
|
|
{
|
|
var tvCont =new TvDbProvider();
|
|
var result = tvCont.SearchSeries(title);
|
|
|
|
Assert.AreNotEqual(0, result.Count);
|
|
Assert.AreEqual(title, result[0].SeriesName, StringComparison.InvariantCultureIgnoreCase);
|
|
}
|
|
}
|
|
}
|