Exemplo n.º 1
0
        public void DownloadQuoteNameCheck()
        {
            IQuoteDownloader downloader = new QuoteDownloader();
            var result = downloader.GetQuote("ENG");

            Assert.AreEqual("Energa SA", result.Name);
        }
Exemplo n.º 2
0
        public void DownloadSingleQuoteTest()
        {
            IQuoteDownloader downloader = new QuoteDownloader();
            var result = downloader.GetQuote("ENG");

            Assert.AreEqual("Energa SA", result.Name);
            Assert.AreNotEqual(0, result.Chart.Length);
        }
Exemplo n.º 3
0
        public void DownloadQuoteChartCheck()
        {
            IQuoteDownloader downloader = new QuoteDownloader();
            var result = downloader.GetQuote("ENG");

            Assert.AreNotEqual(0, result.Chart[0].Open);
            Assert.AreNotEqual(0, result.Chart[0].High);
            Assert.AreNotEqual(0, result.Chart[0].Low);
            Assert.AreNotEqual(0, result.Chart[0].Close);
        }