コード例 #1
0
        public void SetPrice_UpdatePrice_UpdatedPrice()
        {
            //Arrange
            int     inputPrice  = 1000;
            BagItem testBagItem = new BagItem("Camera", inputPrice, 2, true);

            //Act
            int updatePrice = 500;

            testBagItem.SetPrice(updatePrice);
            int resultPrice = testBagItem.GetPrice();

            //Assert
            Assert.AreEqual(500, resultPrice);
        }