示例#1
0
        public void TestToString()
        {
            string res = TestCaseManager.LoadTestCaseFile(GetType(), "KLineData_M01_1Minute");

            string[]   lines     = res.Split('\r');
            IKLineData klineData = CsvUtils_KLineData.LoadByLines(lines);

            for (int i = 0; i < lines.Length; i++)
            {
                klineData.BarPos = i;
                Assert.AreEqual(lines[i].Trim(), klineData.ToString());
            }
        }
示例#2
0
 public static KLineData GetKLineData(String resource)
 {
     string[] lines = resource.Split('\r');
     return((KLineData)CsvUtils_KLineData.LoadByLines(lines));
 }