public void PacketPlayerLeft_Deserialzing_Successful()
        {
            var comp = new byte[] { 0xef,
                                    0xbe,
                                    0xad,
                                    0xde };

            var packet = new PacketPlayerLeft();

            packet.Deserialize(comp);

            Assert.AreEqual(0xDEADBEEF, packet.PlayerId);
        }
        public void PacketPlayerKeft_Serializing_Successful()
        {
            const uint PLAYER_ID = 0xDEADBEEF;
            var        packet    = new PacketPlayerLeft(PLAYER_ID);
            var        data      = packet.Serialize();
            var        comp      = new byte[] { 0xef,
                                                0xbe,
                                                0xad,
                                                0xde };

            Assert.AreEqual(comp.Length, data.Length, "Serialized data was not expected length!");

            for (var i = 0; i < data.Length; i++)
            {
                Assert.AreEqual(comp[i], data[i]);
            }
        }