diff --git a/src/NzbDrone.Integration.Test/ApiTests/WantedFixture.cs b/src/NzbDrone.Integration.Test/ApiTests/WantedTests/CutoffUnmetFixture.cs similarity index 53% rename from src/NzbDrone.Integration.Test/ApiTests/WantedFixture.cs rename to src/NzbDrone.Integration.Test/ApiTests/WantedTests/CutoffUnmetFixture.cs index 01e5df8e5..72b8700d5 100644 --- a/src/NzbDrone.Integration.Test/ApiTests/WantedFixture.cs +++ b/src/NzbDrone.Integration.Test/ApiTests/WantedTests/CutoffUnmetFixture.cs @@ -3,42 +3,11 @@ using FluentAssertions; using NUnit.Framework; using NzbDrone.Core.Qualities; -namespace NzbDrone.Integration.Test.ApiTests +namespace NzbDrone.Integration.Test.ApiTests.WantedTests { [TestFixture] - public class WantedFixture : IntegrationTest + public class CutoffUnmetFixture : IntegrationTest { - [Test, Order(0)] - public void missing_should_be_empty() - { - EnsureNoSeries(266189, "The Blacklist"); - - var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc"); - - result.Records.Should().BeEmpty(); - } - - [Test, Order(1)] - public void missing_should_have_monitored_items() - { - EnsureSeries(266189, "The Blacklist", true); - - var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc"); - - result.Records.Should().NotBeEmpty(); - } - - [Test, Order(1)] - public void missing_should_have_series() - { - EnsureSeries(266189, "The Blacklist", true); - - var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc"); - - result.Records.First().Series.Should().NotBeNull(); - result.Records.First().Series.Title.Should().Be("The Blacklist"); - } - [Test, Order(1)] public void cutoff_should_have_monitored_items() { @@ -51,16 +20,6 @@ namespace NzbDrone.Integration.Test.ApiTests result.Records.Should().NotBeEmpty(); } - [Test, Order(1)] - public void missing_should_not_have_unmonitored_items() - { - EnsureSeries(266189, "The Blacklist", false); - - var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc"); - - result.Records.Should().BeEmpty(); - } - [Test, Order(1)] public void cutoff_should_not_have_unmonitored_items() { @@ -86,16 +45,6 @@ namespace NzbDrone.Integration.Test.ApiTests result.Records.First().Series.Title.Should().Be("The Blacklist"); } - [Test, Order(2)] - public void missing_should_have_unmonitored_items() - { - EnsureSeries(266189, "The Blacklist", false); - - var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc", "monitored", "false"); - - result.Records.Should().NotBeEmpty(); - } - [Test, Order(2)] public void cutoff_should_have_unmonitored_items() { diff --git a/src/NzbDrone.Integration.Test/ApiTests/WantedTests/MissingFixture.cs b/src/NzbDrone.Integration.Test/ApiTests/WantedTests/MissingFixture.cs new file mode 100644 index 000000000..9a75b5357 --- /dev/null +++ b/src/NzbDrone.Integration.Test/ApiTests/WantedTests/MissingFixture.cs @@ -0,0 +1,61 @@ +using System.Linq; +using FluentAssertions; +using NUnit.Framework; + +namespace NzbDrone.Integration.Test.ApiTests.WantedTests +{ + [TestFixture] + public class MissingFixture : IntegrationTest + { + [Test, Order(0)] + public void missing_should_be_empty() + { + EnsureNoSeries(266189, "The Blacklist"); + + var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc"); + + result.Records.Should().BeEmpty(); + } + + [Test, Order(1)] + public void missing_should_have_monitored_items() + { + EnsureSeries(266189, "The Blacklist", true); + + var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc"); + + result.Records.Should().NotBeEmpty(); + } + + [Test, Order(1)] + public void missing_should_have_series() + { + EnsureSeries(266189, "The Blacklist", true); + + var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc"); + + result.Records.First().Series.Should().NotBeNull(); + result.Records.First().Series.Title.Should().Be("The Blacklist"); + } + + [Test, Order(1)] + public void missing_should_not_have_unmonitored_items() + { + EnsureSeries(266189, "The Blacklist", false); + + var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc"); + + result.Records.Should().BeEmpty(); + } + + [Test, Order(2)] + public void missing_should_have_unmonitored_items() + { + EnsureSeries(266189, "The Blacklist", false); + + var result = WantedMissing.GetPaged(0, 15, "airDateUtc", "desc", "monitored", "false"); + + result.Records.Should().NotBeEmpty(); + } + } +} diff --git a/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj b/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj index fc5d16225..0990347cf 100644 --- a/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj +++ b/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj @@ -107,7 +107,8 @@ - + +