示例#1
0
        public void QualityShouldIncreaseByOneperDay()
        {
            AgedBrieItem agedBrieItem = new AgedBrieItem("", 5, 5);

            agedBrieItem.DaysPast(2);
            Assert.AreEqual(7, agedBrieItem.GetQuality());
        }
示例#2
0
        public void QualityShouldNotGoBelowMinimum()
        {
            AgedBrieItem agedBrieItem = new AgedBrieItem("", 5, -10);

            agedBrieItem.DaysPast(2);
            Assert.AreEqual(0, agedBrieItem.GetQuality());
        }
示例#3
0
        public void QualityShouldGoAboveMaxQualityLimit()
        {
            AgedBrieItem agedBrieItem = new AgedBrieItem("", 5, 5);

            agedBrieItem.DaysPast(56);
            Assert.AreEqual(50, agedBrieItem.GetQuality());
        }
示例#4
0
        public void TestInputFromTechTest()
        {
            AgedBrieItem agedBrieItem = new AgedBrieItem("", 1, 1);

            agedBrieItem.DaysPast(1);
            Assert.AreEqual(2, agedBrieItem.GetQuality());
            Assert.AreEqual(0, agedBrieItem.GetSellIn());
        }