Example #1
0
        public void NormalTestQualityDecreasesTwiceAsFastWhenSellinNegative()
        {
            var normalItem = new NormalItem();

            normalItem.EndOfDayUpdate(0, 4);
            normalItem.Quality.ShouldBe(2);
        }
Example #2
0
        public void NormalTestSellin()
        {
            var normalItem = new NormalItem();

            normalItem.EndOfDayUpdate(4, 5);
            normalItem.SellIn.ShouldBe(3);
        }
Example #3
0
        public void NormalTestQualityNotBelowZero()
        {
            var normalItem = new NormalItem();

            normalItem.EndOfDayUpdate(4, 0);
            normalItem.Quality.ShouldBe(0);
        }
Example #4
0
        public void NormalTestQuality()
        {
            var normalItem = new NormalItem();

            normalItem.EndOfDayUpdate(4, 5);
            normalItem.Quality.ShouldBe(4);
        }