Apache.NMS.ActiveMQ.Test.Commands.ActiveMQMapMessageTest.TestItemExists C# (CSharp) Method

TestItemExists() private method

private TestItemExists ( ) : void
return void
        public void TestItemExists()
        {
            ActiveMQMapMessage mapMessage = new ActiveMQMapMessage();

            mapMessage.Body.SetString("exists", "test");

            mapMessage = (ActiveMQMapMessage)mapMessage.Clone();

            Assert.IsTrue(mapMessage.Body.Contains("exists"));
            Assert.IsFalse(mapMessage.Body.Contains("doesntExist"));
        }