public void BroadcastPacket_SendsPacketToAllPlayers()
    {
        var server = new TestingServer();

        var player  = server.AddFakePlayer();
        var player2 = server.AddFakePlayer();

        server.BroadcastPacket(new SetElementModelRpcPacket(player.Id, 0));

        server.NetWrapperMock.Verify(x => x.SendPacket(
                                         player.Address,
                                         PacketId.PACKET_ID_LUA_ELEMENT_RPC,
                                         It.IsAny <ushort>(),
                                         It.IsAny <byte[]>(),
                                         It.IsAny <PacketPriority>(),
                                         It.IsAny <PacketReliability>()
                                         ), Times.Once);
        server.NetWrapperMock.Verify(x => x.SendPacket(
                                         player2.Address,
                                         PacketId.PACKET_ID_LUA_ELEMENT_RPC,
                                         It.IsAny <ushort>(),
                                         It.IsAny <byte[]>(),
                                         It.IsAny <PacketPriority>(),
                                         It.IsAny <PacketReliability>()
                                         ), Times.Once);
    }
    public void BroadcastPacket_SendsPacketToAllPlayers()
    {
        var server = new TestingServer();

        var player  = server.AddFakePlayer();
        var player2 = server.AddFakePlayer();

        server.BroadcastPacket(new SetElementModelRpcPacket(player.Id, 0));

        server.VerifyPacketSent(PacketId.PACKET_ID_LUA_ELEMENT_RPC, player);
        server.VerifyPacketSent(PacketId.PACKET_ID_LUA_ELEMENT_RPC, player2);
    }