1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00
Radarr/NzbDrone.Core.Test/SortHelperTest.cs
2011-12-01 21:14:59 -08:00

40 lines
1.2 KiB
C#

// ReSharper disable RedundantUsingDirective
using System;
using System.Collections.Generic;
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;
namespace NzbDrone.Core.Test
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class SortHelperTest : CoreTest
{
//American Gladiators
//Ancient Apocalypse
//There Will Be Brawl
[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)
{
var result = SortHelper.SkipArticles(title);
result.Should().Be(expected);
}
}
}