mirror of https://github.com/lidarr/Lidarr
added tests for when patter doesn't match our 'expected casing'
This commit is contained in:
parent
4cfb2f271d
commit
41cb5c02e8
|
@ -102,6 +102,15 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
||||||
.Should().Be("SOUTH PARK");
|
.Should().Be("SOUTH PARK");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void should_replace_SERIES_TITLE_with_random_casing_should_keep_original_casing()
|
||||||
|
{
|
||||||
|
_namingConfig.StandardEpisodeFormat = "{sErIES-tItLE}";
|
||||||
|
|
||||||
|
Subject.BuildFilename(new List<Episode> { _episode1 }, _series, _episodeFile)
|
||||||
|
.Should().Be(_series.Title.Replace(' ', '-'));
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void should_replace_series_title_with_all_lower_case()
|
public void should_replace_series_title_with_all_lower_case()
|
||||||
{
|
{
|
||||||
|
@ -111,6 +120,8 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
||||||
.Should().Be("south park");
|
.Should().Be("south park");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void should_replace_episode_title()
|
public void should_replace_episode_title()
|
||||||
{
|
{
|
||||||
|
@ -120,6 +131,15 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
||||||
.Should().Be("City Sushi");
|
.Should().Be("City Sushi");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void should_replace_episode_title_if_pattern_has_random_casing()
|
||||||
|
{
|
||||||
|
_namingConfig.StandardEpisodeFormat = "{ePisOde-TitLe}";
|
||||||
|
|
||||||
|
Subject.BuildFilename(new List<Episode> { _episode1 }, _series, _episodeFile)
|
||||||
|
.Should().Be("City-Sushi");
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void should_replace_season_number_with_single_digit()
|
public void should_replace_season_number_with_single_digit()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue