|
|
@ -238,7 +238,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
ParseAndVerifyQuality(title, Quality.Unknown, proper);
|
|
|
|
ParseAndVerifyQuality(title, Quality.Unknown, proper);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test, TestCaseSource("SelfQualityParserCases")]
|
|
|
|
[Test, TestCaseSource(nameof(SelfQualityParserCases))]
|
|
|
|
public void parsing_our_own_quality_enum_name(Quality quality)
|
|
|
|
public void parsing_our_own_quality_enum_name(Quality quality)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var fileName = string.Format("My series S01E01 [{0}]", quality.Name);
|
|
|
|
var fileName = string.Format("My series S01E01 [{0}]", quality.Name);
|
|
|
@ -246,7 +246,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
result.Quality.Should().Be(quality);
|
|
|
|
result.Quality.Should().Be(quality);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test, TestCaseSource("OtherSourceQualityParserCases")]
|
|
|
|
[Test, TestCaseSource(nameof(OtherSourceQualityParserCases))]
|
|
|
|
public void should_parse_quality_from_other_source(string qualityString, Quality quality)
|
|
|
|
public void should_parse_quality_from_other_source(string qualityString, Quality quality)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (var c in new char[] { '-', '.', ' ', '_' })
|
|
|
|
foreach (var c in new char[] { '-', '.', ' ', '_' })
|
|
|
|