|
|
@ -290,6 +290,24 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DelugeTests
|
|
|
|
item.CanBeRemoved.Should().Be(canBeRemoved);
|
|
|
|
item.CanBeRemoved.Should().Be(canBeRemoved);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void GetItems_should_ignore_items_without_hash()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_downloading.Hash = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GivenTorrents(new List<DelugeTorrent>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_downloading,
|
|
|
|
|
|
|
|
_queued
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var items = Subject.GetItems().ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
items.Should().HaveCount(1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
items.First().Status.Should().Be(DownloadItemStatus.Queued);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void should_return_status_with_outputdirs()
|
|
|
|
public void should_return_status_with_outputdirs()
|
|
|
|
{
|
|
|
|
{
|
|
|
|