1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 01:38:24 +00:00

Fixed broken tests for episode status = ignored.

This commit is contained in:
Mark McDowall 2011-08-21 23:32:38 -07:00
parent d120a61ccb
commit 4e41791d58

View file

@ -14,11 +14,9 @@ namespace NzbDrone.Core.Test
// ReSharper disable InconsistentNaming // ReSharper disable InconsistentNaming
public class EpisodeStatusTest : TestBase public class EpisodeStatusTest : TestBase
{ {
[TestCase(1, false, false, EpisodeStatusType.NotAired)] [TestCase(1, false, false, EpisodeStatusType.NotAired)]
[TestCase(-2, false, false, EpisodeStatusType.Missing)] [TestCase(-2, false, false, EpisodeStatusType.Missing)]
[TestCase(1, true, false, EpisodeStatusType.Ready)] [TestCase(1, true, false, EpisodeStatusType.Ready)]
[TestCase(1, false, true, EpisodeStatusType.Ignored)]
public void no_grab_date(int offsetDays, bool hasEpisodes, bool ignored, EpisodeStatusType status) public void no_grab_date(int offsetDays, bool hasEpisodes, bool ignored, EpisodeStatusType status)
{ {
Episode episode = Builder<Episode>.CreateNew() Episode episode = Builder<Episode>.CreateNew()
@ -36,11 +34,9 @@ public void no_grab_date(int offsetDays, bool hasEpisodes, bool ignored, Episode
Assert.AreEqual(status, episode.Status); Assert.AreEqual(status, episode.Status);
} }
[TestCase(1, false, false, EpisodeStatusType.Missing)] [TestCase(1, false, false, EpisodeStatusType.Missing)]
[TestCase(-2, false, false, EpisodeStatusType.Missing)] [TestCase(-2, false, false, EpisodeStatusType.Missing)]
[TestCase(1, true, false, EpisodeStatusType.Ready)] [TestCase(1, true, false, EpisodeStatusType.Ready)]
[TestCase(1, false, true, EpisodeStatusType.Ignored)]
public void old_grab_date(int offsetDays, bool hasEpisodes, bool ignored, public void old_grab_date(int offsetDays, bool hasEpisodes, bool ignored,
EpisodeStatusType status) EpisodeStatusType status)
{ {
@ -58,7 +54,6 @@ public void old_grab_date(int offsetDays, bool hasEpisodes, bool ignored,
Assert.AreEqual(status, episode.Status); Assert.AreEqual(status, episode.Status);
} }
[TestCase(1, false, false, EpisodeStatusType.Downloading)] [TestCase(1, false, false, EpisodeStatusType.Downloading)]
[TestCase(-2, false, false, EpisodeStatusType.Downloading)] [TestCase(-2, false, false, EpisodeStatusType.Downloading)]
[TestCase(1, true, false, EpisodeStatusType.Ready)] [TestCase(1, true, false, EpisodeStatusType.Ready)]
@ -82,9 +77,6 @@ public void recent_grab_date(int offsetDays, bool hasEpisodes, bool ignored,
Assert.AreEqual(status, episode.Status); Assert.AreEqual(status, episode.Status);
} }
[TestCase(1, true, false, EpisodeStatusType.Ignored)]
[TestCase(-2, true, false, EpisodeStatusType.Ignored)]
[TestCase(1, true, true, EpisodeStatusType.Ready)] [TestCase(1, true, true, EpisodeStatusType.Ready)]
public void ignored_episode(int offsetDays, bool ignored, bool hasEpisodes, EpisodeStatusType status) public void ignored_episode(int offsetDays, bool ignored, bool hasEpisodes, EpisodeStatusType status)
{ {
@ -103,7 +95,6 @@ public void ignored_episode(int offsetDays, bool ignored, bool hasEpisodes, Epis
Assert.AreEqual(status, episode.Status); Assert.AreEqual(status, episode.Status);
} }
[Test] [Test]
public void low_air_date() public void low_air_date()
{ {