public void DateIsAheadOfLatestData()
 {
     var expectedOutput = new Dictionary<DateTime, decimal?>();
     var calculator = new ForceIndexCalculator(dataList);
     var result = calculator.CalculateAsync(new DateTime(2111, 7, 6)).Result;
     Assert.AreEqual(expectedOutput, result);
 }
        public void CalculateLastDayOfData()
        {
            var expectedOutput = new Dictionary<DateTime, decimal?>
                {
                    {new DateTime(2010, 7, 6), 11024.85m}
                };

            var calculator = new ForceIndexCalculator(dataList);
            var result = calculator.CalculateAsync(new DateTime(2010, 7, 6)).Result;
            Assert.AreEqual(expectedOutput, result);
        }
        public void CalculateForceIndexTest()
        {
            var expectedOutput = new Dictionary<DateTime, decimal?>
                {
                    {new DateTime(2010, 6, 28), -4557.90m},
                    {new DateTime(2010, 6, 29), -16571.25m},
                    {new DateTime(2010, 6, 30), -1035.22m},
                    {new DateTime(2010, 7, 1), -2080.23m},
                    {new DateTime(2010, 7, 2), -3746.79m},
                    {new DateTime(2010, 7, 6), 11024.85m}
                };

            var calculator = new ForceIndexCalculator(dataList);
            var result = calculator.CalculateAsync().Result;
            Assert.AreEqual(expectedOutput, result);
        }