addChar() public method

Add a new char field.
public addChar ( string name, ushort fid, char val ) : void
name string
fid ushort
val char
return void
 public void testCorrShortSaleCircuitBreaker()
 {
     mMsg = new MamaMsg();
     addMamaHeaderFields(mMsg,
                         (byte)mamaMsgType.MAMA_MSG_TYPE_CORRECTION,
                         (byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
                         (uint)1);
     mMsg.addChar("wCorrShortSaleCircuitBreaker", 5250, 'C');
     ticker.callMamdaOnMsg(mSubscription, mMsg);
     Assert.AreEqual('C', ticker.myCorrShortSaleCircuitBreaker);
 }
 public void testAggressorSide()
 {
     mMsg = new MamaMsg();
     addMamaHeaderFields(
                         mMsg,
                         (byte)mamaMsgType.MAMA_MSG_TYPE_TRADE,
                         (byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
                         1);
     mMsg.addChar("wAggressorSide", 4486, '1');
     callMamdaOnMsg(mSubscription, mMsg);
     Assert.AreEqual("1", mTradeListener.getSide());
     Assert.AreEqual(MamdaFieldState.MODIFIED, mTradeListener.getSideFieldState());
     mMsg = null;
 }
        public void testCached()
        {
            mSecStatusListener = new MamdaSecurityStatusListener();
            mSubscription.addMsgListener(mSecStatusListener);

            mMsg = new MamaMsg();
            addMamaHeaderFields(mMsg,
                                (byte)mamaMsgType.MAMA_MSG_TYPE_SEC_STATUS,
                                (byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
                                (uint)1);
            mMsg.addChar(null, 5248, 'A');
            callMamdaOnMsg(mSubscription, mMsg);
            Assert.AreEqual('A', mSecStatusListener.getShortSaleCircuitBreaker());
            Assert.AreEqual(MamdaFieldState.MODIFIED,
                                mSecStatusListener.getShortSaleCircuitBreakerFieldState());
            mMsg = null;
            mSecStatusListener = null;
        }