public void MACDTest_With_002994_20120329() { MACD target = new MACD(); target.AddRange(sampleData.Take(34)); Assert.AreEqual(0.15, Math.Round(target.DIF, 2)); Assert.AreEqual(0.20, Math.Round(target.DEA, 2)); Assert.AreEqual(-0.10, Math.Round(target.Value, 2)); }
public void MACDTest1() { MACD target = new MACD(3,5,2); // TODO: Initialize to an appropriate value target.AddRange(new double[7] { 1, 2, 3, 4, 5, 6, 7 }); double actual; actual = target.DIF; Assert.AreNotEqual(0, actual); }