public void QAVMWebNegativeTest(QAVTest test) { Avq.UrlContenResult = FfeWeb.GetHttpResponseContent($"https://www.alphavantage.co/query?function=TIME_SERIES_MONTHLY&symbol={test.Symbol}&apikey={test.ApiKey}"); object actual = Avq.QAVM(test.Symbol, info: test.Info, tradingMonth: test.DatePart, tradingDate: test.QuoteDate, bestMatch: test.BestMatch); Assert.Equal(test.Expected, actual); }
public void QAVMTest(QAVTest test) { Avq.UrlContenResult = File.ReadAllText(AvTimeSeriesMonthlyJsonTestFile); object actual = Avq.QAVM(test.Symbol, info: test.Info, tradingMonth: test.DatePart, tradingDate: test.QuoteDate); Assert.Equal(test.Expected, actual); }