|
|
|
@ -102,7 +102,9 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
_downloadClientItem = Builder<DownloadClientItem>
|
|
|
|
|
.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<ISabnzbdProxy>()
|
|
|
|
@ -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<IDiskProvider>()
|
|
|
|
|
.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<IDiskProvider>()
|
|
|
|
|
.Setup(s => s.FolderExists(path))
|
|
|
|
|