You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Radarr/NzbDrone.Core.Test/TvDbControllerTest.cs

29 lines
774 B

14 years ago
using System;
using System.Collections.Generic;
using System.Text;
using Gallio.Framework;
using MbUnit.Framework;
using MbUnit.Framework.ContractVerifiers;
using NzbDrone.Core.Providers;
14 years ago
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.")]
14 years ago
public void TestSearch(string title)
{
var tvCont =new TvDbProvider();
14 years ago
var result = tvCont.SearchSeries(title);
Assert.AreNotEqual(0, result.Count);
Assert.AreEqual(title, result[0].SeriesName, StringComparison.InvariantCultureIgnoreCase);
}
}
}