|
|
@ -75,6 +75,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
[TestCase("A.I.Artificial.Intelligence.(2001)", "A.I. Artificial Intelligence")]
|
|
|
|
[TestCase("A.I.Artificial.Intelligence.(2001)", "A.I. Artificial Intelligence")]
|
|
|
|
[TestCase("A.Movie.Name.(1998)", "A Movie Name")]
|
|
|
|
[TestCase("A.Movie.Name.(1998)", "A Movie Name")]
|
|
|
|
[TestCase("Thor: The Dark World 2013", "Thor The Dark World")]
|
|
|
|
[TestCase("Thor: The Dark World 2013", "Thor The Dark World")]
|
|
|
|
|
|
|
|
[TestCase("Resident.Evil.The.Final.Chapter.2016", "Resident Evil The Final Chapter")]
|
|
|
|
public void should_parse_movie_title(string postTitle, string title)
|
|
|
|
public void should_parse_movie_title(string postTitle, string title)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Parser.Parser.ParseMovieTitle(postTitle).MovieTitle.Should().Be(title);
|
|
|
|
Parser.Parser.ParseMovieTitle(postTitle).MovieTitle.Should().Be(title);
|
|
|
@ -123,6 +124,8 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
[TestCase("Prometheus 50th Anniversary Edition 2012.mkv", "50th Anniversary Edition")]
|
|
|
|
[TestCase("Prometheus 50th Anniversary Edition 2012.mkv", "50th Anniversary Edition")]
|
|
|
|
[TestCase("Movie 2in1 2012.mkv", "2in1")]
|
|
|
|
[TestCase("Movie 2in1 2012.mkv", "2in1")]
|
|
|
|
[TestCase("Movie IMAX 2012.mkv", "IMAX")]
|
|
|
|
[TestCase("Movie IMAX 2012.mkv", "IMAX")]
|
|
|
|
|
|
|
|
[TestCase("Fake Movie Final Cut 2016", "Final Cut")]
|
|
|
|
|
|
|
|
[TestCase("Fake Movie 2016 Final Cut ", "Final Cut")]
|
|
|
|
public void should_parse_edition(string postTitle, string edition)
|
|
|
|
public void should_parse_edition(string postTitle, string edition)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Parser.Parser.ParseMovieTitle(postTitle).Edition.Should().Be(edition);
|
|
|
|
Parser.Parser.ParseMovieTitle(postTitle).Edition.Should().Be(edition);
|
|
|
|