SortHelper.SkipArticles will no longer bomb when a null is passed.

Added tests for SkipArticles.
This commit is contained in:
Mark McDowall 2011-10-06 09:37:34 -07:00
commit 430fb9aead
2 changed files with 44 additions and 0 deletions

View file

@ -9,6 +9,9 @@ namespace NzbDrone.Core.Helpers
{
public static string SkipArticles(string input)
{
if (String.IsNullOrEmpty(input))
return String.Empty;
var articles = new List<string> { "The ", "An ", "A " };
foreach (string article in articles)