2010-09-23 03:19:47 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Gallio.Framework;
|
|
|
|
|
using MbUnit.Framework;
|
|
|
|
|
using MbUnit.Framework.ContractVerifiers;
|
2010-09-28 04:25:41 +00:00
|
|
|
|
using NzbDrone.Core.Providers;
|
2010-09-23 03:19:47 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Test
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class TvDbControllerTest
|
|
|
|
|
{
|
|
|
|
|
[Test]
|
|
|
|
|
[Row("The Simpsons")]
|
|
|
|
|
[Row("Family Guy")]
|
|
|
|
|
[Row("South Park")]
|
2010-09-28 03:58:32 +00:00
|
|
|
|
[Ignore("Have to find a way to mock app path for tests.")]
|
2010-09-23 03:19:47 +00:00
|
|
|
|
public void TestSearch(string title)
|
|
|
|
|
{
|
2010-09-28 04:25:41 +00:00
|
|
|
|
var tvCont =new TvDbProvider();
|
2010-09-23 03:19:47 +00:00
|
|
|
|
var result = tvCont.SearchSeries(title);
|
|
|
|
|
|
|
|
|
|
Assert.AreNotEqual(0, result.Count);
|
|
|
|
|
Assert.AreEqual(title, result[0].SeriesName, StringComparison.InvariantCultureIgnoreCase);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|