Ejemplo n.º 1
0
        public void WontThrowErrorParseDropItem()
        {
            AppDomain appDomain = AppDomain.CreateDomain("WontThrowErrorParseDropItem",
                                                         AppDomain.CurrentDomain.Evidence, AppDomain.CurrentDomain.SetupInformation);

            appDomain.DoCallBack(() =>
            {
                Engine.ClientVersion = new Version(5, 0, 9, 1);

                byte[] packet = { 0x08, 0x40, 0x03, 0x69, 0xef, 0xff, 0xff, 0xff, 0xff, 0x00, 0x40, 0x02, 0x10, 0xe0 };

                DropItem dropItem = new DropItem();

                try
                {
                    dropItem.Parse(packet, packet.Length, PacketDirection.Outgoing);
                }
                catch (Exception)
                {
                    Assert.Fail();
                }
            });
        }