mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
Replaced built-in valuetypes with language keywords.
This commit is contained in:
@@ -37,7 +37,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
[TestCase("Match of the Day 2", "matchday2")]
|
||||
[TestCase("[ www.Torrenting.com ] - Revenge.S03E14.720p.HDTV.X264-DIMENSION", "Revenge")]
|
||||
[TestCase("Seed S02E09 HDTV x264-2HD [eztv]-[rarbg.com]", "Seed")]
|
||||
public void should_parse_series_name(String postTitle, String title)
|
||||
public void should_parse_series_name(string postTitle, string title)
|
||||
{
|
||||
var result = Parser.Parser.ParseSeriesName(postTitle).CleanSeriesTitle();
|
||||
result.Should().Be(title.CleanSeriesTitle());
|
||||
@@ -46,19 +46,19 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
[Test]
|
||||
public void should_remove_accents_from_title()
|
||||
{
|
||||
const String title = "Carnivàle";
|
||||
const string title = "Carnivàle";
|
||||
|
||||
title.CleanSeriesTitle().Should().Be("carnivale");
|
||||
}
|
||||
|
||||
[TestCase("Discovery TV - Gold Rush : 02 Road From Hell [S04].mp4")]
|
||||
public void should_clean_up_invalid_path_characters(String postTitle)
|
||||
public void should_clean_up_invalid_path_characters(string postTitle)
|
||||
{
|
||||
Parser.Parser.ParseTitle(postTitle);
|
||||
}
|
||||
|
||||
[TestCase("[scnzbefnet][509103] 2.Broke.Girls.S03E18.720p.HDTV.X264-DIMENSION", "2 Broke Girls")]
|
||||
public void should_remove_request_info_from_title(String postTitle, String title)
|
||||
public void should_remove_request_info_from_title(string postTitle, string title)
|
||||
{
|
||||
Parser.Parser.ParseTitle(postTitle).SeriesTitle.Should().Be(title);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user