Apache.NMS.ActiveMQ.Test.Commands.ActiveMQTextMessageTest.TestGetBytes C# (CSharp) Method

TestGetBytes() private method

private TestGetBytes ( ) : void
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);
        }