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()); } }
public static KLineData GetKLineData(String resource) { string[] lines = resource.Split('\r'); return((KLineData)CsvUtils_KLineData.LoadByLines(lines)); }