示例#1
0
        public void IsCritical_Set_Get(bool value)
        {
            var packet = new PlayerHurt();

            packet.IsCritical = value;

            Assert.Equal(value, packet.IsCritical);
        }
示例#2
0
        public void IsPvP_Set_Get(bool value)
        {
            var packet = new PlayerHurt();

            packet.IsPvP = value;

            Assert.Equal(value, packet.IsPvP);
        }
示例#3
0
        public void CooldownCounter_Set_Get()
        {
            var packet = new PlayerHurt();

            packet.CooldownCounter = 1;

            Assert.Equal(1, packet.CooldownCounter);
        }
示例#4
0
        public void HitDirection_Set_Get()
        {
            var packet = new PlayerHurt();

            packet.HitDirection = 1;

            Assert.Equal(1, packet.HitDirection);
        }
示例#5
0
        public void Damage_Set_Get()
        {
            var packet = new PlayerHurt();

            packet.Damage = 123;

            Assert.Equal(123, packet.Damage);
        }
示例#6
0
        public void PlayerIndex_Set_Get()
        {
            var packet = new PlayerHurt();

            packet.PlayerIndex = 1;

            Assert.Equal(1, packet.PlayerIndex);
        }
示例#7
0
        public void Context_Set_Get()
        {
            var packet = new PlayerHurt();

            packet.Context = new PlayerDeathReason()
            {
                KillingNpcIndex = 5
            };

            Assert.Equal(5, packet.Context.KillingNpcIndex.Value);
        }