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

TestShallowCopy() private method

private TestShallowCopy ( ) : void
return void
        public void TestShallowCopy()
        {
            ActiveMQTextMessage msg = new ActiveMQTextMessage();
            string testString = "str";
            msg.Text = testString;
            Message copy = msg.Clone() as Message;
            Assert.IsTrue(msg.Text == ((ActiveMQTextMessage) copy).Text);
        }