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

            //Act
            bool updatePacked = false;

            testBagItem.SetPacked(updatePacked);
            bool resultPacked = testBagItem.GetPacked();

            //Assert
            Assert.AreEqual(false, resultPacked);
        }