|
|
@ -1,5 +1,4 @@
|
|
|
|
using System;
|
|
|
|
using FluentAssertions;
|
|
|
|
using FluentAssertions;
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Core.Parser;
|
|
|
|
using NzbDrone.Core.Parser;
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
@ -14,18 +13,19 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
[TestCase("Chuck.S03E17.REAL.PROPER.720p.HDTV.x264-ORENJI-RP", 1)]
|
|
|
|
[TestCase("Chuck.S03E17.REAL.PROPER.720p.HDTV.x264-ORENJI-RP", 1)]
|
|
|
|
[TestCase("Covert.Affairs.S05E09.REAL.PROPER.HDTV.x264-KILLERS", 1)]
|
|
|
|
[TestCase("Covert.Affairs.S05E09.REAL.PROPER.HDTV.x264-KILLERS", 1)]
|
|
|
|
[TestCase("Mythbusters.S14E01.REAL.PROPER.720p.HDTV.x264-KILLERS", 1)]
|
|
|
|
[TestCase("Mythbusters.S14E01.REAL.PROPER.720p.HDTV.x264-KILLERS", 1)]
|
|
|
|
[TestCase("Orange.Is.the.New.Black.s02e06.real.proper.720p.webrip.x264-2hd", 1)]
|
|
|
|
[TestCase("Orange.Is.the.New.Black.s02e06.real.proper.720p.webrip.x264-2hd", 0)]
|
|
|
|
[TestCase("Top.Gear.S21E07.Super.Duper.Real.Proper.HDTV.x264-FTP", 1)]
|
|
|
|
[TestCase("Top.Gear.S21E07.Super.Duper.Real.Proper.HDTV.x264-FTP", 0)]
|
|
|
|
[TestCase("Top.Gear.S21E07.PROPER.HDTV.x264-RiVER-RP", 0)]
|
|
|
|
[TestCase("Top.Gear.S21E07.PROPER.HDTV.x264-RiVER-RP", 0)]
|
|
|
|
[TestCase("House.S07E11.PROPER.REAL.RERIP.1080p.BluRay.x264-TENEIGHTY", 1)]
|
|
|
|
[TestCase("House.S07E11.PROPER.REAL.RERIP.1080p.BluRay.x264-TENEIGHTY", 1)]
|
|
|
|
[TestCase("[MGS] - Kuragehime - Episode 02v2 - [D8B6C90D]", 0)]
|
|
|
|
[TestCase("[MGS] - Kuragehime - Episode 02v2 - [D8B6C90D]", 0)]
|
|
|
|
[TestCase("[Hatsuyuki] Tokyo Ghoul - 07 [v2][848x480][23D8F455].avi", 0)]
|
|
|
|
[TestCase("[Hatsuyuki] Tokyo Ghoul - 07 [v2][848x480][23D8F455].avi", 0)]
|
|
|
|
[TestCase("[DeadFish] Barakamon - 01v3 [720p][AAC]", 0)]
|
|
|
|
[TestCase("[DeadFish] Barakamon - 01v3 [720p][AAC]", 0)]
|
|
|
|
[TestCase("[DeadFish] Momo Kyun Sword - 01v4 [720p][AAC]", 0)]
|
|
|
|
[TestCase("[DeadFish] Momo Kyun Sword - 01v4 [720p][AAC]", 0)]
|
|
|
|
|
|
|
|
[TestCase("The Real Housewives of Some Place - S01E01 - Why are we doing this?", 0)]
|
|
|
|
public void should_parse_reality_from_title(string title, int reality)
|
|
|
|
public void should_parse_reality_from_title(string title, int reality)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//TODO: re-enable this when we have a reliable way to determine real
|
|
|
|
//TODO: re-enable this when we have a reliable way to determine real
|
|
|
|
//QualityParser.ParseQuality(title).Revision.Real.Should().Be(reality);
|
|
|
|
QualityParser.ParseQuality(title).Revision.Real.Should().Be(reality);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase("Chuck.S04E05.HDTV.XviD-LOL", 1)]
|
|
|
|
[TestCase("Chuck.S04E05.HDTV.XviD-LOL", 1)]
|
|
|
|