示例#1
0
        public void Should_Increase_Quality_For_Backstage_By_Three_If_Days_Are_In_Range_Zero_To_Five()
        {
            var items = TestDataContainer.GetListWithAgedBackstagePasses();

            _gildedRose = new GildedRose(items);

            UpdateQuality(_gildedRose, 16);

            Assert.AreEqual(33, items.First().Quality);
        }
示例#2
0
        public void Should_Dropt_Quality_To_Zero_For_Backstage_After_The_Concert()
        {
            var items = TestDataContainer.GetListWithAgedBackstagePasses();

            _gildedRose = new GildedRose(items);

            UpdateQuality(_gildedRose, 21);

            Assert.AreEqual(0, items.First().Quality);
        }
示例#3
0
        public void Should_Increase_Quality_For_Backstage_Passes_The_Older_It_Gets()
        {
            var items = TestDataContainer.GetListWithAgedBackstagePasses();

            _gildedRose = new GildedRose(items);

            _gildedRose.UpdateQuality();
            var firstDayQuality = items.First().Quality;

            _gildedRose.UpdateQuality();
            var secondDayQuality = items.First().Quality;

            Assert.IsTrue(secondDayQuality > firstDayQuality);
        }