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

            //Act
            int updateWeight = 3;

            testBagItem.SetWeight(updateWeight);
            int resultWeight = testBagItem.GetWeight();

            //Assert
            Assert.AreEqual(3, resultWeight);
        }