コード例 #1
0
        public void SinglePurchase_Set_Get(bool value)
        {
            var packet = new NpcShopInventory();

            packet.SinglePurchase = value;

            Assert.Equal(value, packet.SinglePurchase);
        }
コード例 #2
0
        public void Price_Set_Get()
        {
            var packet = new NpcShopInventory();

            packet.Price = 100;

            Assert.Equal(100, packet.Price);
        }
コード例 #3
0
        public void Prefix_Set_Get()
        {
            var packet = new NpcShopInventory();

            packet.Prefix = ItemPrefix.Unreal;

            Assert.Equal(ItemPrefix.Unreal, packet.Prefix);
        }
コード例 #4
0
        public void StackSize_Set_Get()
        {
            var packet = new NpcShopInventory();

            packet.StackSize = 1;

            Assert.Equal(1, packet.StackSize);
        }
コード例 #5
0
        public void Id_Set_Get()
        {
            var packet = new NpcShopInventory();

            packet.Id = ItemId.Sdmg;

            Assert.Equal(ItemId.Sdmg, packet.Id);
        }
コード例 #6
0
        public void Slot_Set_Get()
        {
            var packet = new NpcShopInventory();

            packet.Slot = 3;

            Assert.Equal(3, packet.Slot);
        }