src/test/java/com/gildedrose/GildedRoseTest.java
//Rule #0 : At the end of each day our system lowers both values for every item
Rule #0 : At the end of each day our system lowers both values for every item
Rule #0 : At the end of each day our system lowers both values for every item
@Test
    public void sellEndDay() {
        Item[] items = new Item[] { new Item("Other Item", 2, 10) };
        GildedRose app = new GildedRose(items);
        app.updateQuality();
        assertEquals(app.items[0].sellIn,1);
    }
@ Test public void sellEndDay ( ) { Item [ ] items = new Item [ ] { new Item ( "Other Item" , 2 , 10 ) } ; GildedRose app = new GildedRose ( items ) ; app . updateQuality ( ) ; assertEquals ( app . items [ 0 ] . sellIn , 1 ) ; }
Rule #0 : At the end of each day our system lowers both values for every item
Rule #0 : At the end of each day our system lowers both values for every item