2011-10-06 19:37:34 +03:00
|
|
|
// ReSharper disable RedundantUsingDirective
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2011-11-14 03:22:18 +03:00
|
|
|
|
2011-10-06 19:37:34 +03:00
|
|
|
using FizzWare.NBuilder;
|
|
|
|
using FluentAssertions;
|
|
|
|
using Moq;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Core.Helpers;
|
|
|
|
using NzbDrone.Core.Model.Notification;
|
|
|
|
using NzbDrone.Core.Providers;
|
|
|
|
using NzbDrone.Core.Repository;
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
|
2012-12-23 04:18:05 +03:00
|
|
|
namespace NzbDrone.Core.Test.HelperTests
|
2011-10-06 19:37:34 +03:00
|
|
|
{
|
|
|
|
[TestFixture]
|
|
|
|
// ReSharper disable InconsistentNaming
|
2013-02-02 23:54:03 +03:00
|
|
|
public class SortHelperTest : SqlCeTest
|
2011-10-06 19:37:34 +03: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 08:36:48 +03:00
|
|
|
var result = title.IgnoreArticles();
|
2011-10-06 19:37:34 +03:00
|
|
|
result.Should().Be(expected);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|