|
|
|
@ -66,6 +66,8 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
|
[TestCase("2 Broke Girls - S01E01 - Pilot.en.sub", Language.English)]
|
|
|
|
|
[TestCase("2 Broke Girls - S01E01 - Pilot.eng.sub", Language.English)]
|
|
|
|
|
[TestCase("2 Broke Girls - S01E01 - Pilot.sub", Language.Unknown)]
|
|
|
|
|
[TestCase("2 Broke Girls - S01E01 - Pilot.eng.forced.sub", Language.English)]
|
|
|
|
|
[TestCase("2 Broke Girls - S01E01 - Pilot-eng-forced.sub", Language.English)]
|
|
|
|
|
public void should_parse_subtitle_language(string fileName, Language language)
|
|
|
|
|
{
|
|
|
|
|
var result = LanguageParser.ParseSubtitleLanguage(fileName);
|
|
|
|
|