public void BeforeSellBy_DegradesAtDouble() { var input = new Item(string.Empty, 2, 2); var day = new ConjuredUpdater(); var result = day.Add(input); Assert.Equal(input.Quality - 2, result.Quality); }
public int When_ConjuredItem_gets_older_then_Quality_decreases_twice_as_fast_as_normal_items(int sellIn, int quality) { var updater = new ConjuredUpdater(); var item = new Item { Name = "Conjured Mana Cake", SellIn = sellIn, Quality = quality }; updater.Update(item); return(item.Quality); }
public ConjuredUpdaterTest() { Updater = new ConjuredUpdater(); }