public void GetCurrencyTypeFundsRankTest() { string rank = "1"; string code = "040043"; string abbreviation = "华安7日鑫短期"; string millionOfNetGain = "1.8156"; string weeklyAnnualizedReturnRates = "7.58%"; FundRank target = new FundRank(); // TODO: 初始化为适当的值 target.DownLoadPage(); DataTable actual; actual = target.GetCurrencyTypeFundsRank(); Assert.AreEqual(rank, actual.Rows[0][0]); Assert.AreEqual(code, actual.Rows[0][1]); Assert.AreEqual(abbreviation, actual.Rows[0][2]); Assert.AreEqual(millionOfNetGain, actual.Rows[0][3]); Assert.AreEqual(weeklyAnnualizedReturnRates, actual.Rows[0][4]); }
public void GetCloseTypeFundsRankTest() { string rank = "1"; string code = "150019"; string abbreviation = "银华锐进"; string discountRates = "--"; string currentValue= "0.385"; string gains = "5.48%"; FundRank target = new FundRank(); // TODO: 初始化为适当的值 target.DownLoadPage(); DataTable actual; actual = target.GetCloseTypeFundsRank(); Assert.AreEqual(rank, actual.Rows[0][0]); Assert.AreEqual(code, actual.Rows[0][1]); Assert.AreEqual(abbreviation, actual.Rows[0][2]); Assert.AreEqual(discountRates, actual.Rows[0][3]); Assert.AreEqual(currentValue, actual.Rows[0][4]); Assert.AreEqual(gains, actual.Rows[0][5]); }
public void GetOpenTypeFundsRankTest() { string rank = "1"; string code = "260104"; string abbreviation = "景顺长城内需增"; string netValues = "4.2050"; string dailyGrowthRates = "2.16%"; FundRank target = new FundRank(); // TODO: 初始化为适当的值 target.DownLoadPage(); DataTable actual; actual = target.GetOpenTypeFundsRank(); Assert.AreEqual(rank, actual.Rows[0][0]); Assert.AreEqual(code, actual.Rows[0][1]); Assert.AreEqual(abbreviation, actual.Rows[0][2]); Assert.AreEqual(netValues, actual.Rows[0][3]); Assert.AreEqual(dailyGrowthRates, actual.Rows[0][4]); }