mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-17 15:31:27 +00:00
test: adding toString unit test
This commit is contained in:
parent
93373b6a13
commit
e94ee451b3
@ -51,4 +51,10 @@ class ItemTest {
|
|||||||
assertEquals(1, items[0].getQuality());
|
assertEquals(1, items[0].getQuality());
|
||||||
assertEquals(0, items[0].getSellIn());
|
assertEquals(0, items[0].getSellIn());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void toItemString() {
|
||||||
|
Item[] items = new Item[]{new Item("Elixir of the Mongoose", 0, 5)};
|
||||||
|
assertEquals("Elixir of the Mongoose, 0, 5", items[0].toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user