Apache.NMS.ActiveMQ.Test.Commands.ActiveMQMapMessageTest.TestItemExists C# (CSharp) 메소드

TestItemExists() 개인적인 메소드

private TestItemExists ( ) : void
리턴 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"));
        }