mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 04:51:45 +02:00
test clean up.
This commit is contained in:
27
NzbDrone.Core.Test/HelperTests/SortHelperTest.cs
Normal file
27
NzbDrone.Core.Test/HelperTests/SortHelperTest.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Helpers;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Test.HelperTests
|
||||
{
|
||||
[TestFixture]
|
||||
|
||||
public class SortHelperTest : CoreTest
|
||||
{
|
||||
[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 = title.IgnoreArticles();
|
||||
result.Should().Be(expected);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user