public void QualityShouldIncreaseBy3PerDay() { ChristmasCrackerItem crackerItem = new ChristmasCrackerItem("", 4, 2); crackerItem.DaysPast(3); Assert.AreEqual(11, crackerItem.GetQuality()); }
public void QualityShouldGotoZeroAfterSellBy() { ChristmasCrackerItem crackerItem = new ChristmasCrackerItem("", 0, 20); crackerItem.DaysPast(1); Assert.AreEqual(0, crackerItem.GetQuality()); }
public void QualityShoulNotGoAboveMaximum() { ChristmasCrackerItem crackerItem = new ChristmasCrackerItem("", 11, 2); crackerItem.DaysPast(200); Assert.AreEqual(50, crackerItem.GetQuality()); }
public void TestInputFromTechTest2() { ChristmasCrackerItem crackerItem = new ChristmasCrackerItem("", 9, 2); crackerItem.DaysPast(1); Assert.AreEqual(8, crackerItem.GetSellIn()); Assert.AreEqual(4, crackerItem.GetQuality()); }