2013-03-28 22:07:09 +00:00
|
|
|
|
using FluentAssertions;
|
2011-10-06 16:37:34 +00:00
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using NzbDrone.Core.Helpers;
|
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
|
|
2012-12-23 01:18:05 +00:00
|
|
|
|
namespace NzbDrone.Core.Test.HelperTests
|
2011-10-06 16:37:34 +00:00
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2013-02-17 05:44:06 +00:00
|
|
|
|
public class SortHelperTest : CoreTest
|
2011-10-06 16:37:34 +00:00
|
|
|
|
{
|
|
|
|
|
[TestCase("The Office (US)", "Office (US)")]
|
|
|
|
|
[TestCase("A Man in Anger", "Man in Anger")]
|
|
|
|
|
[TestCase("An Idiot Abroad", "Idiot Abroad")]
|
|
|
|
|
[TestCase("American Gladiators", "American Gladiators")]
|
|
|
|
|
[TestCase("Ancient Apocalyps", "Ancient Apocalyps")]
|
|
|
|
|
[TestCase("There Will Be Brawl", "There Will Be Brawl")]
|
|
|
|
|
[TestCase("30 Rock", "30 Rock")]
|
|
|
|
|
[TestCase(null, "")]
|
|
|
|
|
public void SkipArticles(string title, string expected)
|
|
|
|
|
{
|
2012-12-21 05:36:48 +00:00
|
|
|
|
var result = title.IgnoreArticles();
|
2011-10-06 16:37:34 +00:00
|
|
|
|
result.Should().Be(expected);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|