Fixing broken tests

This commit is contained in:
Mark McDowall 2015-01-11 11:48:03 -08:00
parent fc0fa2c22f
commit 3c145c63f4
1 changed files with 17 additions and 1 deletions

View File

@ -35,7 +35,6 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("the")] [TestCase("the")]
[TestCase("and")] [TestCase("and")]
[TestCase("or")] [TestCase("or")]
[TestCase("a")]
[TestCase("an")] [TestCase("an")]
[TestCase("of")] [TestCase("of")]
public void should_remove_common_words(string word) public void should_remove_common_words(string word)
@ -57,6 +56,23 @@ namespace NzbDrone.Core.Test.ParserTests
} }
} }
[Test]
public void should_remove_a_from_middle_of_title()
{
var dirtyFormat = new[]
{
"word.{0}.word",
"word {0} word",
"word-{0}-word",
};
foreach (var s in dirtyFormat)
{
var dirty = String.Format(s, "a");
dirty.CleanSeriesTitle().Should().Be("wordword");
}
}
[TestCase("the")] [TestCase("the")]
[TestCase("and")] [TestCase("and")]
[TestCase("or")] [TestCase("or")]