1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00

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 @@ public void failed_item_should_have_required_properties()
{
PrepareClientToReturnFailedItem();
var item = Subject.GetItems().Single();
VerifyFailed(item);
VerifyWarning(item);
}
[Test]

View File

@ -108,6 +108,13 @@ protected void VerifyCompleted(DownloadClientItem downloadClientItem)
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 @@ public void failed_item_should_have_required_properties()
{
PrepareClientToReturnFailedItem();
var item = Subject.GetItems().Single();
VerifyFailed(item);
VerifyWarning(item);
}
[Test]

View File

@ -192,7 +192,7 @@ public void failed_item_should_have_required_properties()
{
PrepareClientToReturnFailedItem();
var item = Subject.GetItems().Single();
VerifyFailed(item);
VerifyWarning(item);
}
[Test]