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

TestGetLong() 개인적인 메소드

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