BeforeMarshall() public method

public BeforeMarshall ( OpenWireFormat wireFormat ) : void
wireFormat Apache.NMS.ActiveMQ.OpenWire.OpenWireFormat
return void
 public void TestGetBytes() 
 {
     ActiveMQTextMessage msg = new ActiveMQTextMessage();
     String str = "testText";
     msg.Text = str;
     msg.BeforeMarshall(null);
     
     byte[] bytes = msg.Content;
     msg = new ActiveMQTextMessage();
     msg.Content = bytes;
     
     Assert.AreEqual(msg.Text, str);
 }