public void IsPvP_Set_Get(bool value) { var packet = new PlayerKill(); packet.IsPvP = value; Assert.Equal(value, packet.IsPvP); }
public void HitDirection_Set_Get() { var packet = new PlayerKill(); packet.HitDirection = 1; Assert.Equal(1, packet.HitDirection); }
public void Damage_Set_Get() { var packet = new PlayerKill(); packet.Damage = 1; Assert.Equal(1, packet.Damage); }
public void PlayerIndex_Set_Get() { var packet = new PlayerKill(); packet.PlayerIndex = 1; Assert.Equal(1, packet.PlayerIndex); }
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); }