public void StartAnalysisProcessTest() { CoreEngine target = new CoreEngine(); // TODO: Initialize to an appropriate value StrategyFormulizer strategyFormulizer = new StrategyFormulizer(target); DateTime startTime = new DateTime(2000,1,7); // TODO: Initialize to an appropriate value DateTime endTime = new DateTime(2010,1,15); // TODO: Initialize to an appropriate value //IEnumerable<TradeRecord> expected = null; // TODO: Initialize to an appropriate value //IEnumerable<TradeRecord> actual; DateTime startTimerTime = DateTime.Now; target.StartAnalysisProcess(startTime, endTime); DateTime endTimerTime = DateTime.Now; //Assert.AreEqual(expected, actual); Assert.Inconclusive(String.Format("It takes {0}ms to execute the engine", (endTimerTime - startTimerTime).Milliseconds)); }
public void StartAnalysisProcessTest2() { CoreEngine target = new CoreEngine(); // TODO: Initialize to an appropriate value StrategyFormulizer strategyFormulizer = new StrategyFormulizer(target); DateTime startTime = new DateTime(2000,1,7); // TODO: Initialize to an appropriate value DateTime endTime = new DateTime(2010,1,15); // TODO: Initialize to an appropriate value target.StartAnalysisProcess(startTime, endTime); var usdRecords = TradeRecordsCollection.UniqueInstance.TradeRecords.Where(r => r.CurrencyToTrade.Name == "USD"); var targetRecord = usdRecords.Where(r => r.StartTime == startTime && r.EndTime == startTime.AddDays(7 * 12)); Assert.IsTrue(targetRecord.Count() == 1); //Assert.Inconclusive("A method that does not return a value cannot be verified."); }