mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Couple more anime version test cases
This commit is contained in:
parent
c38608e3cf
commit
a22c0499d5
@ -24,7 +24,6 @@ public class ExtendedQualityParserRegex : CoreTest
|
|||||||
[TestCase("The Real Housewives of Some Place - S01E01 - Why are we doing this?", 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
|
|
||||||
QualityParser.ParseQuality(title).Revision.Real.Should().Be(reality);
|
QualityParser.ParseQuality(title).Revision.Real.Should().Be(reality);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,6 +40,9 @@ public void should_parse_reality_from_title(string title, int reality)
|
|||||||
[TestCase("[Hatsuyuki] Tokyo Ghoul - 07 [v2][848x480][23D8F455].avi", 2)]
|
[TestCase("[Hatsuyuki] Tokyo Ghoul - 07 [v2][848x480][23D8F455].avi", 2)]
|
||||||
[TestCase("[DeadFish] Barakamon - 01v3 [720p][AAC]", 3)]
|
[TestCase("[DeadFish] Barakamon - 01v3 [720p][AAC]", 3)]
|
||||||
[TestCase("[DeadFish] Momo Kyun Sword - 01v4 [720p][AAC]", 4)]
|
[TestCase("[DeadFish] Momo Kyun Sword - 01v4 [720p][AAC]", 4)]
|
||||||
|
[TestCase("[Vivid-Asenshi] Akame ga Kill - 04v2 [266EE983]", 2)]
|
||||||
|
[TestCase("[Vivid-Asenshi] Akame ga Kill - 03v2 [66A05817]", 2)]
|
||||||
|
[TestCase("[Vivid-Asenshi] Akame ga Kill - 02v2 [1F67AB55]", 2)]
|
||||||
public void should_parse_version_from_title(string title, int version)
|
public void should_parse_version_from_title(string title, int version)
|
||||||
{
|
{
|
||||||
QualityParser.ParseQuality(title).Revision.Version.Should().Be(version);
|
QualityParser.ParseQuality(title).Revision.Version.Should().Be(version);
|
||||||
|
@ -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.Qualities;
|
using NzbDrone.Core.Qualities;
|
||||||
|
Loading…
Reference in New Issue
Block a user