And added a test for it.

This commit is contained in:
Taloth Saldono
2015-05-29 20:55:38 +02:00
parent 1cc6ad0d5f
commit a1ff7cbef0
2 changed files with 12 additions and 1 deletions
@@ -371,5 +371,16 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests
Subject.Test();
}
[TestCase(-1)] // Infinite/Unknown
[TestCase(-2)] // Magnet Downloading
public void should_ignore_negative_eta(int eta)
{
_completed.Eta = eta;
PrepareClientToReturnCompletedItem();
var item = Subject.GetItems().Single();
item.RemainingTime.Should().NotHaveValue();
}
}
}