mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 06:21:29 +00:00
Should never be greater than 50 the quality of an item
This commit is contained in:
parent
4cc77e6892
commit
1f09168a37
@ -6,6 +6,16 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
|||||||
|
|
||||||
class GildedRoseTest {
|
class GildedRoseTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void should_never_be_greater_than_50_quality_of_an_item() {
|
||||||
|
Item item = new Item("Aged Brie", 5, 50);
|
||||||
|
GildedRose gildedRose = new GildedRose(new Item[] { item });
|
||||||
|
|
||||||
|
gildedRose.updateQuality();
|
||||||
|
|
||||||
|
assertEquals(item.quality, 50);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void should_decrease_multiple_items_quality_each_day() {
|
void should_decrease_multiple_items_quality_each_day() {
|
||||||
Item firstItem = new Item("First Standard Item", 5, 4);
|
Item firstItem = new Item("First Standard Item", 5, 4);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user