本文整理匯總了C#中Wombat.MamaMsg.addChar方法的典型用法代碼示例。如果您正苦於以下問題:C# MamaMsg.addChar方法的具體用法?C# MamaMsg.addChar怎麽用?C# MamaMsg.addChar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Wombat.MamaMsg
的用法示例。
在下文中一共展示了MamaMsg.addChar方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: testCorrShortSaleCircuitBreaker
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);
}
示例2: testAggressorSide
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;
}
示例3: testCached
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;
}