mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-01 12:34:40 +00:00
Fixing broken tests
This commit is contained in:
parent
fc0fa2c22f
commit
3c145c63f4
1 changed files with 17 additions and 1 deletions
|
@ -35,7 +35,6 @@ public void should_remove_special_characters_and_casing(string dirty, string cle
|
|||
[TestCase("the")]
|
||||
[TestCase("and")]
|
||||
[TestCase("or")]
|
||||
[TestCase("a")]
|
||||
[TestCase("an")]
|
||||
[TestCase("of")]
|
||||
public void should_remove_common_words(string word)
|
||||
|
@ -57,6 +56,23 @@ public void should_remove_common_words(string word)
|
|||
}
|
||||
}
|
||||
|
||||
[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("and")]
|
||||
[TestCase("or")]
|
||||
|
|
Loading…
Reference in a new issue