mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
test case for legendary items
legendary items never have to be sold
This commit is contained in:
parent
ab94957940
commit
112db7306b
@ -131,4 +131,14 @@ class GildedRoseTest {
|
||||
|
||||
assertThat(item.quality).isEqualTo(50);
|
||||
}
|
||||
|
||||
@Test
|
||||
void legendary_items_never_have_to_be_sold() {
|
||||
Item item = new Item("Sulfuras, Hand of Ragnaros", -1, 80);
|
||||
GildedRose app = new GildedRose(new Item[]{item});
|
||||
|
||||
app.updateQuality();
|
||||
|
||||
assertThat(item.sellIn).isEqualTo(-1);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user