1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-16 15:29:40 +02:00
Radarr/NzbDrone.Core.Test/TvDbControllerTest.cs
2010-09-22 20:19:47 -07:00

28 lines
711 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Gallio.Framework;
using MbUnit.Framework;
using MbUnit.Framework.ContractVerifiers;
using NzbDrone.Core.Controllers;
namespace NzbDrone.Core.Test
{
[TestFixture]
public class TvDbControllerTest
{
[Test]
[Row("The Simpsons")]
[Row("Family Guy")]
[Row("South Park")]
public void TestSearch(string title)
{
var tvCont =new TvDbController();
var result = tvCont.SearchSeries(title);
Assert.AreNotEqual(0, result.Count);
Assert.AreEqual(title, result[0].SeriesName, StringComparison.InvariantCultureIgnoreCase);
}
}
}