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

TestGetBoolean() private method

private TestGetBoolean ( ) : void
return void
        public void TestGetBoolean()
        {
            ActiveMQMapMessage msg = new ActiveMQMapMessage();
            msg.Body.SetBool(name, true);
            msg.ReadOnlyBody = true;
            Assert.IsTrue(msg.Body.GetBool(name));
            msg.ClearBody();
            msg.Body.SetString(name, "True");

            msg = (ActiveMQMapMessage)msg.Clone();

            Assert.IsTrue(msg.Body.GetBool(name));
        }