Exemplo n.º 1
0
        public void IsPvP_Set_Get(bool value)
        {
            var packet = new PlayerKill();

            packet.IsPvP = value;

            Assert.Equal(value, packet.IsPvP);
        }
Exemplo n.º 2
0
        public void HitDirection_Set_Get()
        {
            var packet = new PlayerKill();

            packet.HitDirection = 1;

            Assert.Equal(1, packet.HitDirection);
        }
Exemplo n.º 3
0
        public void Damage_Set_Get()
        {
            var packet = new PlayerKill();

            packet.Damage = 1;

            Assert.Equal(1, packet.Damage);
        }
Exemplo n.º 4
0
        public void PlayerIndex_Set_Get()
        {
            var packet = new PlayerKill();

            packet.PlayerIndex = 1;

            Assert.Equal(1, packet.PlayerIndex);
        }
Exemplo n.º 5
0
        public void DeathReason_Set_Get()
        {
            var packet = new PlayerKill();

            packet.DeathReason = new PlayerDeathReason()
            {
                KillerIndex = 1, ItemType = 2
            };

            Assert.Equal(1, packet.DeathReason.KillerIndex.Value);
            Assert.Equal(2, packet.DeathReason.ItemType.Value);
        }