Пример #1
0
        public void DecreaseSellIn_ItemLegendary_SellInDoesntChange(int sellIn)
        {
            //Arrange
            var item = Constructors.ItemLegendary;

            item.SellIn = sellIn;
            var sellInCalculator = new ItemSellInCalculator();

            //Act
            sellInCalculator.DecreaseSellIn(item);

            //Assert
            Assert.Equal(sellIn, item.SellIn);
        }
Пример #2
0
        public void DecreaseSellIn_Item(int sellIn)
        {
            //Arrange
            var item = Constructors.Item;

            item.SellIn = sellIn;
            var sellInCalculator = new ItemSellInCalculator();

            //Act
            sellInCalculator.DecreaseSellIn(item);

            //Assert
            Assert.Equal(sellIn - 1, item.SellIn);
        }