public void SWIFTBodyBlock_BuildMessage_TestAppBlockInputProperties()
        {
            ApplicationBlock appblock = new ApplicationBlock();

            appblock.BuildBlock("{2:I103BANKDEFFXXXXU3003}");

            Assert.AreEqual("I", appblock.IOType);
            Assert.AreEqual("103", appblock.MessageType);
            Assert.AreEqual("U", appblock.Priority);

            Assert.AreEqual("BANKDEFFXXXX", appblock.ReceiverAddress);
            Assert.AreEqual("3", appblock.DeliveryMonitoring);
            Assert.AreEqual("003", appblock.ObsolescencePeriod);
        }
        public void SWIFTBodyBlock_BuildMessage_TestAppBlockOutputProperties()
        {
            ApplicationBlock appblock = new ApplicationBlock();

            appblock.BuildBlock("{2:O1001200970103BANKBEBBAXXX22221234569701031201N}");

            Assert.AreEqual("O", appblock.IOType);
            Assert.AreEqual("100", appblock.MessageType);
            Assert.AreEqual("N", appblock.Priority);

            Assert.AreEqual("1200", appblock.InputTime);
            Assert.AreEqual("970103BANKBEBBAXXX2222123456", appblock.MessageInputReference);
            Assert.AreEqual("970103", appblock.OutputDate);
            Assert.AreEqual("1201", appblock.OutputTime);
        }