コード例 #1
0
        public void TestDailyOpens(int n)
        {
            DataManipulator dm = new DataManipulator();

            var a = dm.GetListOfDailyOpeningPrices("GS", n);

            var content = new WebConnection().GetDailyStockDataFromTicker("GS", n);
            var info    = dm.GetStockInfoArrayGivenRawString(content);
            var pairs   = dm.GetDayInfoFromStrings(info);

            var b = dm.GetListOfDailyOpeningPrices(pairs);

            Assert.AreEqual(a, b);
        }