public void Can_enumerate_all_added_items()
        {
            var packet = new AddMultipleItemsInContainerPacket();

            packet.Deserialize(AddMultipleItemsInContainerPacket);

            packet.Items.Count().Should().Be(2);
        }
        public void Can_get_number_of_added_items()
        {
            var packet = new AddMultipleItemsInContainerPacket();

            packet.Deserialize(AddMultipleItemsInContainerPacket);

            packet.ItemCount.Should().Be(2);
        }
        public void Can_deserizalize_second_item()
        {
            var packet = new AddMultipleItemsInContainerPacket();

            packet.Deserialize(AddMultipleItemsInContainerPacket);

            var firstItem = packet.Items.Skip(1).First();

            firstItem.Id.Should().Be(new ObjectId(0x4000000a));
            firstItem.Type.Should().Be((ModelId)0x0ff1);
            firstItem.Amount.Should().Be(1);
            firstItem.Color.Should().Be(new Color(0x0000));
            firstItem.ContainerId.Value.Should().Be(new ObjectId(0x40000004));
            firstItem.Location.X.Should().Be(0x0043);
            firstItem.Location.Y.Should().Be(0x0082);
        }
        public void Can_deserizalize_first_item()
        {
            var packet = new AddMultipleItemsInContainerPacket();

            packet.Deserialize(AddMultipleItemsInContainerPacket);

            var firstItem = packet.Items.First();

            firstItem.Id.Should().Be(new ObjectId(0x4000000b));
            firstItem.Type.Should().Be((ModelId)0x0eed);
            firstItem.Amount.Should().Be(0x01f4);
            firstItem.Color.Should().Be(new Color(0x0000));
            firstItem.ContainerId.Value.Should().Be(new ObjectId(0x40000004));
            firstItem.Location.X.Should().Be(0x74);
            firstItem.Location.Y.Should().Be(0x61);
        }