|
|
@ -13,6 +13,13 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.VuzeTests
|
|
|
|
[TestFixture]
|
|
|
|
[TestFixture]
|
|
|
|
public class VuzeFixture : TransmissionFixtureBase<Vuze>
|
|
|
|
public class VuzeFixture : TransmissionFixtureBase<Vuze>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
[SetUp]
|
|
|
|
|
|
|
|
public void Setup_Vuze()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// Vuze never sets isFinished.
|
|
|
|
|
|
|
|
_completed.IsFinished = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void queued_item_should_have_required_properties()
|
|
|
|
public void queued_item_should_have_required_properties()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -147,8 +154,8 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.VuzeTests
|
|
|
|
[TestCase(TransmissionTorrentStatus.Check, DownloadItemStatus.Downloading)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Check, DownloadItemStatus.Downloading)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Queued, DownloadItemStatus.Queued)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Queued, DownloadItemStatus.Queued)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Downloading, DownloadItemStatus.Downloading)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Downloading, DownloadItemStatus.Downloading)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.SeedingWait, DownloadItemStatus.Completed)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.SeedingWait, DownloadItemStatus.Downloading)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Seeding, DownloadItemStatus.Completed)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Seeding, DownloadItemStatus.Downloading)]
|
|
|
|
public void GetItems_should_return_queued_item_as_downloadItemStatus(TransmissionTorrentStatus apiStatus, DownloadItemStatus expectedItemStatus)
|
|
|
|
public void GetItems_should_return_queued_item_as_downloadItemStatus(TransmissionTorrentStatus apiStatus, DownloadItemStatus expectedItemStatus)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_queued.Status = apiStatus;
|
|
|
|
_queued.Status = apiStatus;
|
|
|
@ -162,7 +169,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.VuzeTests
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase(TransmissionTorrentStatus.Queued, DownloadItemStatus.Queued)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Queued, DownloadItemStatus.Queued)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Downloading, DownloadItemStatus.Downloading)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Downloading, DownloadItemStatus.Downloading)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Seeding, DownloadItemStatus.Completed)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Seeding, DownloadItemStatus.Downloading)]
|
|
|
|
public void GetItems_should_return_downloading_item_as_downloadItemStatus(TransmissionTorrentStatus apiStatus, DownloadItemStatus expectedItemStatus)
|
|
|
|
public void GetItems_should_return_downloading_item_as_downloadItemStatus(TransmissionTorrentStatus apiStatus, DownloadItemStatus expectedItemStatus)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_downloading.Status = apiStatus;
|
|
|
|
_downloading.Status = apiStatus;
|
|
|
@ -177,7 +184,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.VuzeTests
|
|
|
|
[TestCase(TransmissionTorrentStatus.Stopped, DownloadItemStatus.Completed, false)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Stopped, DownloadItemStatus.Completed, false)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.CheckWait, DownloadItemStatus.Downloading, true)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.CheckWait, DownloadItemStatus.Downloading, true)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Check, DownloadItemStatus.Downloading, true)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Check, DownloadItemStatus.Downloading, true)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Queued, DownloadItemStatus.Completed, true)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Queued, DownloadItemStatus.Queued, true)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.SeedingWait, DownloadItemStatus.Completed, true)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.SeedingWait, DownloadItemStatus.Completed, true)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Seeding, DownloadItemStatus.Completed, true)]
|
|
|
|
[TestCase(TransmissionTorrentStatus.Seeding, DownloadItemStatus.Completed, true)]
|
|
|
|
public void GetItems_should_return_completed_item_as_downloadItemStatus(TransmissionTorrentStatus apiStatus, DownloadItemStatus expectedItemStatus, bool expectedReadOnly)
|
|
|
|
public void GetItems_should_return_completed_item_as_downloadItemStatus(TransmissionTorrentStatus apiStatus, DownloadItemStatus expectedItemStatus, bool expectedReadOnly)
|
|
|
@ -332,4 +339,4 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.VuzeTests
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|