@ -9,13 +9,13 @@ namespace NzbDrone.Core.Test.MediaFiles.movieImport.Aggregation.Aggregators
[TestFixture]
public class AggregateSubtitleInfoFixture : CoreTest < AggregateSubtitleInfo >
{
[TestCase("Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " ", " Name ( 2020 ) - [ AAC 2.0 ] . default . eng . forced . ass " )]
[TestCase("Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " ", " Name ( 2020 ) - [ AAC 2.0 ] . eng . default . ass " )]
[TestCase("Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " ", " Name ( 2020 ) - [ AAC 2.0 ] . fra . ass " )]
[TestCase("", "Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " Name ( 2020 ) - [ AAC 2.0 ] . default . eng . forced . ass " )]
[TestCase("", "Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " Name ( 2020 ) - [ AAC 2.0 ] . eng . default . ass " )]
[TestCase("", "Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " Name ( 2020 ) - [ AAC 2.0 ] . fra . ass " )]
public void should_do_basic_parse ( string relativePath , string originalFilePath , string path )
[TestCase("Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " ", " Name ( 2020 ) - [ AAC 2.0 ] . default . eng . forced . ass " , null )]
[TestCase("Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " ", " Name ( 2020 ) - [ AAC 2.0 ] . eng . default . ass " , null )]
[TestCase("Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " ", " Name ( 2020 ) - [ AAC 2.0 ] . fra . ass " , null )]
[TestCase("", "Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " Name ( 2020 ) - [ AAC 2.0 ] . default . eng . forced . ass " , "Name ( 2020 ) / Name ( 2020 ) - [ FLAC 2.0 ] . mkv " )]
[TestCase("", "Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " Name ( 2020 ) - [ AAC 2.0 ] . eng . default . ass " , null )]
[TestCase("", "Name (2020)/Name (2020) - [AAC 2.0] . mkv ", " Name ( 2020 ) - [ AAC 2.0 ] . fra . ass " , null )]
public void should_do_basic_parse ( string relativePath , string originalFilePath , string path , string fileNameBeforeRename )
{
var movieFile = new MovieFile
{
@ -23,7 +23,7 @@ namespace NzbDrone.Core.Test.MediaFiles.movieImport.Aggregation.Aggregators
OriginalFilePath = originalFilePath
} ;
var subtitleTitleInfo = Subject . CleanSubtitleTitleInfo ( movieFile , path );
var subtitleTitleInfo = Subject . CleanSubtitleTitleInfo ( movieFile , path , fileNameBeforeRename );
subtitleTitleInfo . Title . Should ( ) . BeNull ( ) ;
subtitleTitleInfo . Copy . Should ( ) . Be ( 0 ) ;
@ -40,7 +40,7 @@ namespace NzbDrone.Core.Test.MediaFiles.movieImport.Aggregation.Aggregators
RelativePath = relativePath
} ;
var subtitleTitleInfo = Subject . CleanSubtitleTitleInfo ( movieFile , path );
var subtitleTitleInfo = Subject . CleanSubtitleTitleInfo ( movieFile , path , null );
subtitleTitleInfo . LanguageTags . Should ( ) . NotContain ( "default" ) ;
}