diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/TorrentBlackholeFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/TorrentBlackholeFixture.cs index 3a1ab714c..018309d5f 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/TorrentBlackholeFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/TorrentBlackholeFixture.cs @@ -37,7 +37,9 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole _magnetFilePath = Path.ChangeExtension(_filePath, ".magnet"); _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 7010294c6..7f12a30d6 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/UsenetBlackholeFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/Blackhole/UsenetBlackholeFixture.cs @@ -32,7 +32,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 36d45032e..8b2d6a777 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 e0ac39a84..c9ae1e25b 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs @@ -102,7 +102,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() @@ -588,6 +590,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)) @@ -611,6 +614,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))