fixed broken tests in torrent client.

This commit is contained in:
Taloth Saldono 2014-11-23 21:40:18 +01:00
parent 08d92c5511
commit 54d296c2a8
4 changed files with 10 additions and 3 deletions

View File

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

View File

@ -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);

View File

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

View File

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