fixed broken tests in torrent client.

pull/3113/head
Taloth Saldono 10 years ago
parent 08d92c5511
commit 54d296c2a8

@ -186,7 +186,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DelugeTests
{
PrepareClientToReturnFailedItem();
var item = Subject.GetItems().Single();
VerifyFailed(item);
VerifyWarning(item);
}
[Test]

@ -108,6 +108,13 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests
downloadClientItem.Status.Should().Be(DownloadItemStatus.Completed);
}
protected void VerifyWarning(DownloadClientItem downloadClientItem)
{
VerifyIdentifiable(downloadClientItem);
downloadClientItem.Status.Should().Be(DownloadItemStatus.Warning);
}
protected void VerifyFailed(DownloadClientItem downloadClientItem)
{
VerifyIdentifiable(downloadClientItem);

@ -198,7 +198,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests
{
PrepareClientToReturnFailedItem();
var item = Subject.GetItems().Single();
VerifyFailed(item);
VerifyWarning(item);
}
[Test]

@ -192,7 +192,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.UTorrentTests
{
PrepareClientToReturnFailedItem();
var item = Subject.GetItems().Single();
VerifyFailed(item);
VerifyWarning(item);
}
[Test]

Loading…
Cancel
Save