From 28b7323d4dd330c3a8cc4b76acf3ebc4dd4ad48b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 9 May 2019 09:31:05 -0700 Subject: [PATCH] Fixed NZBGet tests --- .../DownloadClientTests/NzbgetTests/NzbgetFixture.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs index 66b7db64d..cbb79f44f 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs @@ -9,7 +9,7 @@ using NzbDrone.Core.Download.Clients.Nzbget; using NzbDrone.Test.Common; using NzbDrone.Core.RemotePathMappings; using NzbDrone.Common.Disk; -using NzbDrone.Core.Download.Clients; +using NzbDrone.Core.Exceptions; namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests { @@ -277,16 +277,16 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests } [Test] - public void should_report_deletestatus_copy_as_failed() + public void should_skip_deletestatus_copy() { _completed.DeleteStatus = "COPY"; GivenQueue(null); GivenHistory(_completed); - var result = Subject.GetItems().Single(); + var result = Subject.GetItems().SingleOrDefault(); - result.Status.Should().Be(DownloadItemStatus.Failed); + result.Should().BeNull(); } [Test] @@ -350,7 +350,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests var remoteAlbum = CreateRemoteAlbum(); - Assert.Throws(() => Subject.Download(remoteAlbum)); + Assert.Throws(() => Subject.Download(remoteAlbum)); } [Test]