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

TestGetLong() private method

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