Description
1) ToMsmqMessage() does not handle the actual message body
2) answer.TimeToBeReceived = message.NMSExpiration seems to make the message expire immediately (since the TimeSpan structure is initialised to 00:00:00)
3) answer.Label = message.NMSType raises an exception when NMSType is null (per AMQNET-67)
4) The MSMQ message.CorrelationId, message.DestinationQueue and message.TimeToBeReceived properties all raise InvalidOperationException when accessed, if the message doesn't define a value
5) Accessing the message.Body property raises an exception unless an IMessageFormatter has been provided.
The attached patch addresses these problems, but only provides support for BytesMessage instances. This seems better than no support for any kind of message though? Made available under ASF license.