Beispiel #1
0
        public void ShouldValidateQualityLowerLimit()
        {
            // arrange
            Normal itemz = new Normal(0, 0);

            // act
            itemz.AdjustQuality();

            //assert
            itemz.CurrentQuality().Should().Be(0);
        }
Beispiel #2
0
        public void ShouldDecrementQuality1XIfBeforeSellIn()
        {
            // arrange
            Normal itemz = new Normal(1, 5);

            // act
            itemz.AdjustQuality();

            //assert
            itemz.CurrentQuality().Should().Be(4);
        }
Beispiel #3
0
        public void ShouldDecrementQuality2XIfPastSellIn()
        {
            // arrange
            Normal itemz = new Normal(0, 6);

            // act
            itemz.AdjustQuality();

            //assert
            itemz.CurrentQuality().Should().Be(4);
        }