|
|
@ -191,7 +191,10 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests
|
|
|
|
var result = Subject.GetItems().Single();
|
|
|
|
var result = Subject.GetItems().Single();
|
|
|
|
|
|
|
|
|
|
|
|
VerifyQueued(result);
|
|
|
|
VerifyQueued(result);
|
|
|
|
|
|
|
|
|
|
|
|
result.RemainingTime.Should().NotBe(TimeSpan.Zero);
|
|
|
|
result.RemainingTime.Should().NotBe(TimeSpan.Zero);
|
|
|
|
|
|
|
|
result.CanBeRemoved.Should().BeTrue();
|
|
|
|
|
|
|
|
result.CanMoveFiles.Should().BeTrue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase(SabnzbdDownloadStatus.Paused)]
|
|
|
|
[TestCase(SabnzbdDownloadStatus.Paused)]
|
|
|
@ -205,6 +208,9 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests
|
|
|
|
var result = Subject.GetItems().Single();
|
|
|
|
var result = Subject.GetItems().Single();
|
|
|
|
|
|
|
|
|
|
|
|
VerifyPaused(result);
|
|
|
|
VerifyPaused(result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.CanBeRemoved.Should().BeTrue();
|
|
|
|
|
|
|
|
result.CanMoveFiles.Should().BeTrue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase(SabnzbdDownloadStatus.Checking)]
|
|
|
|
[TestCase(SabnzbdDownloadStatus.Checking)]
|
|
|
@ -227,7 +233,10 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests
|
|
|
|
var result = Subject.GetItems().Single();
|
|
|
|
var result = Subject.GetItems().Single();
|
|
|
|
|
|
|
|
|
|
|
|
VerifyDownloading(result);
|
|
|
|
VerifyDownloading(result);
|
|
|
|
|
|
|
|
|
|
|
|
result.RemainingTime.Should().NotBe(TimeSpan.Zero);
|
|
|
|
result.RemainingTime.Should().NotBe(TimeSpan.Zero);
|
|
|
|
|
|
|
|
result.CanBeRemoved.Should().BeTrue();
|
|
|
|
|
|
|
|
result.CanMoveFiles.Should().BeTrue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -255,6 +264,9 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests
|
|
|
|
var result = Subject.GetItems().Single();
|
|
|
|
var result = Subject.GetItems().Single();
|
|
|
|
|
|
|
|
|
|
|
|
VerifyFailed(result);
|
|
|
|
VerifyFailed(result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.CanBeRemoved.Should().BeTrue();
|
|
|
|
|
|
|
|
result.CanMoveFiles.Should().BeTrue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|