private void TestYield(String symbol, Decimal marketPrice, Decimal expected) { stockManagementService.UpdateMarketPrice(symbol, marketPrice); Decimal yield = stockManagementService.GetDividendYield(symbol); Assert.AreEqual(expected, yield, String.Format("Failed to assert dividend yield for {0}", symbol)); }