mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 09:49:00 +00:00
Added another test for IsUpgrade.
This commit is contained in:
parent
197979ea3c
commit
8267be0a48
1 changed files with 13 additions and 0 deletions
|
@ -123,5 +123,18 @@ public void IsUpgrade_should_return_true_if_new_quality_is_a_proper_with_the_sam
|
|||
//Assert
|
||||
result.Should().BeTrue();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void IsUpgrade_should_return_false_if_new_equals_current_but_current_is_proper_even_if_cutoff_is_met()
|
||||
{
|
||||
var currentQuality = new Quality(QualityTypes.SDTV, true);
|
||||
var newQuality = new Quality(QualityTypes.SDTV, false);
|
||||
var cutoff = QualityTypes.SDTV;
|
||||
|
||||
var result = InventoryProvider.IsUpgrade(currentQuality, newQuality, cutoff);
|
||||
|
||||
//Assert
|
||||
result.Should().BeFalse();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue