public void TestQueryNotice() { _api.OnRspQryNotice += new TradeApi.RspQryNotice((ref CThostFtdcNoticeField pNotice, ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) => { if (pRspInfo.ErrorID == 0) { Console.WriteLine("客户通知查询成功, Content: {0}", pNotice.Content); } else { Console.WriteLine(pRspInfo.ErrorMsg); } Assert.IsTrue(pRspInfo.ErrorID == 0); }); _api.QueryNotice(1); Thread.Sleep(200); }