mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
Reformat and apply Stylecop rules
This commit is contained in:
@@ -11,7 +11,6 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
|
||||
public class QualityParserFixture : CoreTest
|
||||
{
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
@@ -19,7 +18,6 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
}
|
||||
|
||||
//public static object[] SelfQualityParserCases = QualityDefinition.DefaultQualityDefinitions.ToArray();
|
||||
|
||||
public static object[] OtherSourceQualityParserCases =
|
||||
{
|
||||
new object[] { "SD TV", Source.TV, Resolution.R480p, Modifier.NONE },
|
||||
@@ -113,7 +111,6 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
ParseAndVerifyQuality(title, Source.TV, proper, Resolution.R720p);
|
||||
}
|
||||
|
||||
|
||||
[TestCase("DEXTER.S07E01.ARE.YOU.1080P.HDTV.X264-QCF", false)]
|
||||
[TestCase("DEXTER.S07E01.ARE.YOU.1080P.HDTV.x264-QCF", false)]
|
||||
[TestCase("DEXTER.S07E01.ARE.YOU.1080P.HDTV.proper.X264-QCF", true)]
|
||||
@@ -282,7 +279,6 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
//{
|
||||
// ParseAndVerifyQuality(title, Quality.RAWHD, proper);
|
||||
//}
|
||||
|
||||
[TestCase("Sonny.With.a.Chance.S02E15", false)]
|
||||
[TestCase("Law & Order: Special Victims Unit - 11x11 - Quickie", false)]
|
||||
[TestCase("Series.Title.S01E01.webm", false)]
|
||||
@@ -306,7 +302,8 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
|
||||
}*/
|
||||
|
||||
[Test, TestCaseSource("OtherSourceQualityParserCases")]
|
||||
[Test]
|
||||
[TestCaseSource("OtherSourceQualityParserCases")]
|
||||
public void should_parse_quality_from_other_source(string qualityString, Source source, Resolution resolution, Modifier modifier = Modifier.NONE)
|
||||
{
|
||||
foreach (var c in new char[] { '-', '.', ' ', '_' })
|
||||
@@ -363,6 +360,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
{
|
||||
result.Quality.Resolution.Should().Be((int)resolution);
|
||||
}
|
||||
|
||||
result.Quality.Source.Should().Be(source);
|
||||
if (modifier != Modifier.NONE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user