mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-23 22:25:56 -04:00
Update parser tests to be generic
This commit is contained in:
@@ -26,8 +26,8 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests
|
||||
public void Setup()
|
||||
{
|
||||
_series = Builder<Series>.CreateNew()
|
||||
.With(s => s.Title = "30 Rock")
|
||||
.With(s => s.CleanTitle = "rock")
|
||||
.With(s => s.Title = "30 Stone")
|
||||
.With(s => s.CleanTitle = "stone")
|
||||
.Build();
|
||||
|
||||
_episodes = Builder<Episode>.CreateListOfSize(1)
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests
|
||||
[Test]
|
||||
public void should_use_passed_in_title_when_it_cannot_be_parsed()
|
||||
{
|
||||
const string title = "30 Rock";
|
||||
const string title = "30 Stone";
|
||||
|
||||
Subject.GetSeries(title);
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests
|
||||
[Test]
|
||||
public void should_use_parsed_series_title()
|
||||
{
|
||||
const string title = "30.Rock.S01E01.720p.hdtv";
|
||||
const string title = "30.Stone.S01E01.720p.hdtv";
|
||||
|
||||
Subject.GetSeries(title);
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests
|
||||
[Test]
|
||||
public void should_fallback_to_title_without_year_and_year_when_title_lookup_fails()
|
||||
{
|
||||
const string title = "House.2004.S01E01.720p.hdtv";
|
||||
const string title = "Show.2004.S01E01.720p.hdtv";
|
||||
var parsedEpisodeInfo = Parser.Parser.ParseTitle(title);
|
||||
|
||||
Subject.GetSeries(title);
|
||||
|
||||
@@ -26,8 +26,8 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests
|
||||
public void Setup()
|
||||
{
|
||||
_series = Builder<Series>.CreateNew()
|
||||
.With(s => s.Title = "30 Rock")
|
||||
.With(s => s.CleanTitle = "rock")
|
||||
.With(s => s.Title = "30 Stone")
|
||||
.With(s => s.CleanTitle = "stone")
|
||||
.Build();
|
||||
|
||||
_episodes = Builder<Episode>.CreateListOfSize(1)
|
||||
|
||||
Reference in New Issue
Block a user