コード例 #1
0
        public void ShouldValidateQualityLowerLimit()
        {
            // arrange
            Normal itemz = new Normal(0, 0);

            // act
            itemz.AdjustQuality();

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

            // act
            itemz.AdjustQuality();

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

            // act
            itemz.AdjustQuality();

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