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

TestGetInt() private method

private TestGetInt ( ) : void
return void
        public void TestGetInt()
        {
            ActiveMQMapMessage msg = new ActiveMQMapMessage();
            try
            {
                msg.Body.SetInt(this.name, 1);
                msg = (ActiveMQMapMessage)msg.Clone();
                Assert.IsTrue(msg.Body.GetInt(this.name) == 1);
            }
            catch(NMSException)
            {
                Assert.IsTrue(false);
            }
        }