1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

Added: A Huge Cleanup of old Series Code. (Let's pray nothing breaks :P) (#2589)

This commit is contained in:
Qstick
2018-03-14 16:41:36 -04:00
committed by Leonardo Galli
parent 8a6d67a6d7
commit 25e10e26e3
551 changed files with 2835 additions and 18867 deletions
@@ -33,7 +33,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("QZC4HDl7ncmzyUj9amucWe1ddKU1oFMZDd8r0dEDUsTd")]
public void should_not_parse_crap(string title)
{
Parser.Parser.ParseTitle(title).Should().BeNull();
Parser.Parser.ParseMovieTitle(title, false).Should().BeNull();
ExceptionVerification.IgnoreWarns();
}
@@ -52,7 +52,7 @@ namespace NzbDrone.Core.Test.ParserTests
hash = BitConverter.ToString(hashData).Replace("-", "");
if (Parser.Parser.ParseTitle(hash) == null)
if (Parser.Parser.ParseMovieTitle(hash, false) == null)
success++;
}
@@ -78,7 +78,7 @@ namespace NzbDrone.Core.Test.ParserTests
hash.Append(charset[hashAlgo.Next() % charset.Length]);
}
if (Parser.Parser.ParseTitle(hash.ToString()) == null)
if (Parser.Parser.ParseMovieTitle(hash.ToString(), false) == null)
success++;
}
@@ -88,7 +88,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("thebiggestloser1618finale")]
public void should_not_parse_file_name_without_proper_spacing(string fileName)
{
Parser.Parser.ParseTitle(fileName).Should().BeNull();
Parser.Parser.ParseMovieTitle(fileName, false).Should().BeNull();
}
}
}