本文整理汇总了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;
}