public void checkSumOFKeyValue_MS() { double stockValue = PortfolioStock.sumOfOnePortkeyAndPortValue("MS", 20); Assert.AreEqual(1000, stockValue); Assert.AreNotEqual(2000, stockValue); Assert.AreNotEqual(-300, stockValue); }
public void checkSumOFKeyValue_GOOG() { double stockValue = PortfolioStock.sumOfOnePortkeyAndPortValue("GOOG", 10); Assert.AreEqual(500, stockValue); Assert.AreNotEqual(600, stockValue); Assert.AreNotEqual(-200, stockValue); }
public void checkSumOFKeyValueNotEqual_INFS() { double stockValue = PortfolioStock.sumOfOnePortkeyAndPortValue("INFS", 50); Assert.AreNotEqual(1000, stockValue); }