diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/TorrentBlackholeFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/TorrentBlackholeFixture.cs index 45efcb0d7..6b63737e8 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/TorrentBlackholeFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/TorrentBlackholeFixture.cs @@ -36,7 +36,9 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole _filePath = (@"c:\blackhole\torrent\" + _title + ".torrent").AsOsAgnostic(); _downloadClientItem = Builder - .CreateNew().With(d => d.DownloadId = "_Droned.S01E01.Pilot.1080p.WEB-DL-DRONE_0") + .CreateNew() + .With(d => d.DownloadId = "_Droned.S01E01.Pilot.1080p.WEB-DL-DRONE_0") + .With(d => d.OutputPath = new OsPath(Path.Combine(_completedDownloadFolder, _title))) .Build(); Mocker.SetConstant(Mocker.Resolve()); diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/UsenetBlackholeFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/UsenetBlackholeFixture.cs index ed63fad5b..6638e338d 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/UsenetBlackholeFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/UsenetBlackholeFixture.cs @@ -34,7 +34,9 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole _filePath = (@"c:\blackhole\nzb\" + _title + ".nzb").AsOsAgnostic(); _downloadClientItem = Builder - .CreateNew().With(d => d.DownloadId = "_Droned.S01E01.Pilot.1080p.WEB-DL-DRONE_0") + .CreateNew() + .With(d => d.DownloadId = "_Droned.S01E01.Pilot.1080p.WEB-DL-DRONE_0") + .With(d => d.OutputPath = new OsPath(Path.Combine(_completedDownloadFolder, _title))) .Build(); Mocker.SetConstant(Mocker.Resolve()); diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs index 9448e3aa3..be865de9f 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs @@ -77,7 +77,9 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests }; _downloadClientItem = Builder - .CreateNew().With(d => d.DownloadId = "_Droned.S01E01.Pilot.1080p.WEB-DL-DRONE_0") + .CreateNew() + .With(d => d.DownloadId = "_Droned.S01E01.Pilot.1080p.WEB-DL-DRONE_0") + .With(d => d.OutputPath = new OsPath("/remote/mount/tv/Droned.S01E01.Pilot.1080p.WEB-DL-DRONE".AsOsAgnostic())) .Build(); Mocker.GetMock() diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs index 137e8f4d2..a3f699478 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs @@ -1,6 +1,7 @@ using System; using System.Linq; using System.Collections.Generic; +using System.IO; using FizzWare.NBuilder; using FluentAssertions; using Moq; @@ -103,7 +104,9 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests }; _downloadClientItem = Builder - .CreateNew().With(d => d.DownloadId = _completed.Items.First().Id) + .CreateNew() + .With(d => d.Status = DownloadItemStatus.Completed) + .With(d => d.DownloadId = _completed.Items.First().Id) .Build(); Mocker.GetMock() @@ -586,6 +589,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests public void should_remove_output_path_folder_when_deleting_a_completed_item_and_delete_data_is_true() { var path = @"C:\Test\Series.Title.S01E01".AsOsAgnostic(); + _downloadClientItem.OutputPath = new OsPath(path); Mocker.GetMock() .Setup(s => s.FolderExists(path)) @@ -609,6 +613,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests public void should_remove_output_path_file_when_deleting_a_completed_item_and_delete_data_is_true() { var path = @"C:\Test\Series.Title.S01E01.mkv".AsOsAgnostic(); + _downloadClientItem.OutputPath = new OsPath(path); Mocker.GetMock() .Setup(s => s.FolderExists(path))