public void Test_DelistStock_Simple() { // Postojeća dionica miče se s burze string dionica1 = "Dionica1"; _stockExchange.ListStock(dionica1, 1000000, 10m, DateTime.Now); Assert.True(_stockExchange.StockExists(dionica1)); Assert.AreEqual(1, _stockExchange.NumberOfStocks()); _stockExchange.DelistStock(dionica1); Assert.False(_stockExchange.StockExists(dionica1)); Assert.AreEqual(0, _stockExchange.NumberOfStocks()); }
public void Test_StockExchangeAtTheBeginig() { Assert.AreEqual(0, _stockExchange.NumberOfStocks()); Assert.AreEqual(0, _stockExchange.NumberOfIndices()); Assert.AreEqual(0, _stockExchange.NumberOfPortfolios()); }