@ -248,11 +248,11 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DelugeTests
item . Status . Should ( ) . Be ( expectedItemStatus ) ;
item . Status . Should ( ) . Be ( expectedItemStatus ) ;
}
}
[TestCase(DelugeTorrentStatus.Paused, DownloadItemStatus.Completed, tru e)]
[TestCase(DelugeTorrentStatus.Paused, DownloadItemStatus.Completed, fals e)]
[TestCase(DelugeTorrentStatus.Checking, DownloadItemStatus.Downloading, tru e)]
[TestCase(DelugeTorrentStatus.Checking, DownloadItemStatus.Downloading, fals e)]
[TestCase(DelugeTorrentStatus.Queued, DownloadItemStatus.Completed, tru e)]
[TestCase(DelugeTorrentStatus.Queued, DownloadItemStatus.Completed, fals e)]
[TestCase(DelugeTorrentStatus.Seeding, DownloadItemStatus.Completed, tru e)]
[TestCase(DelugeTorrentStatus.Seeding, DownloadItemStatus.Completed, fals e)]
public void GetItems_should_return_completed_item_as_downloadItemStatus ( string apiStatus , DownloadItemStatus expectedItemStatus , bool expected ReadOnly )
public void GetItems_should_return_completed_item_as_downloadItemStatus ( string apiStatus , DownloadItemStatus expectedItemStatus , bool expected Value )
{
{
_completed . State = apiStatus ;
_completed . State = apiStatus ;
@ -261,11 +261,12 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DelugeTests
var item = Subject . GetItems ( ) . Single ( ) ;
var item = Subject . GetItems ( ) . Single ( ) ;
item . Status . Should ( ) . Be ( expectedItemStatus ) ;
item . Status . Should ( ) . Be ( expectedItemStatus ) ;
item . IsReadOnly . Should ( ) . Be ( expectedReadOnly ) ;
item . CanBeRemoved . Should ( ) . Be ( expectedValue ) ;
item . CanMoveFiles . Should ( ) . Be ( expectedValue ) ;
}
}
[Test]
[Test]
public void GetItems_should_check_share_ratio_for_ readonly ( )
public void GetItems_should_check_share_ratio_for_ moveFiles_and_remove ( )
{
{
_completed . State = DelugeTorrentStatus . Paused ;
_completed . State = DelugeTorrentStatus . Paused ;
_completed . IsAutoManaged = true ;
_completed . IsAutoManaged = true ;
@ -278,7 +279,8 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DelugeTests
var item = Subject . GetItems ( ) . Single ( ) ;
var item = Subject . GetItems ( ) . Single ( ) ;
item . Status . Should ( ) . Be ( DownloadItemStatus . Completed ) ;
item . Status . Should ( ) . Be ( DownloadItemStatus . Completed ) ;
item . IsReadOnly . Should ( ) . BeFalse ( ) ;
item . CanMoveFiles . Should ( ) . BeTrue ( ) ;
item . CanBeRemoved . Should ( ) . BeTrue ( ) ;
}
}
[Test]
[Test]