public void NegativeDay_DayIsDescreasedBy1_ExceptSulfuras() { var allUpdatersExceptSulfuras = new IDayUpdater[] { new AgedBrieDayUpdater(), new BackstagePassesDayUpdater(), new ConjuredUpdater(), new NormalDayUpdater() }; foreach (var day in allUpdatersExceptSulfuras) { var input = new Item(string.Empty, -5, 100); var result = day.Add(input); Assert.True(-6 == result.SellIn, day.GetType().Name + " SellIn=" + result.SellIn); } }
public void Quality_IsNeverGreaterThan50() { var allUpdaters = new IDayUpdater[] { new AgedBrieDayUpdater(), new BackstagePassesDayUpdater(), new ConjuredUpdater(), new NormalDayUpdater(), new SulfurasUpdater() }; foreach (var day in allUpdaters) { var input = new Item(string.Empty, 5, 100); var result = day.Add(input); Assert.False(50 < result.Quality, day.GetType().Name + " quality = " + result.Quality.ToString()); } }