public void TestKLineDataForward_OnBar() { list_OnBar.Clear(); string code = "RB1710"; int start = 20170601; int endDate = 20170603; KLineDataForward_BigPeriod klineDataForward = GetDataForward(code, start, endDate); klineDataForward.OnBar += KlineDataForward_OnBar; AddToList(list_OnBar, klineDataForward); while (klineDataForward.Forward()) { } AssertUtils.AssertEqual_List("forward_bigperiod", GetType(), list_OnBar); }
public void TestKLineDataForward_Minute() { string code = "RB1710"; int start = 20170601; int endDate = 20170603; KLineDataForward_BigPeriod klineDataForward = GetDataForward(code, start, endDate); List <string> list = new List <string>(); //Print(klineDataForward); AddToList(list, klineDataForward); while (klineDataForward.Forward()) { //Print(klineDataForward); AddToList(list, klineDataForward); } AssertUtils.AssertEqual_List("forward_bigperiod", GetType(), list); }