public void Test_GetLastStockPrice_RandomPrices() { // Postavljanje cijena u trenucima i dohvaćanje zadnje string dionica1 = "Dionica1"; _stockExchange.ListStock(dionica1, 1000, 100m, new DateTime(2013, 1, 1, 1, 0, 0, 0)); _stockExchange.SetStockPrice(dionica1, new DateTime(2014, 1, 1, 1, 0, 0, 0), 200m); // cijena nakon - najnovija/zadnja _stockExchange.SetStockPrice(dionica1, new DateTime(2012, 1, 1, 1, 0, 0, 0), 300m); // cijena prije Assert.AreEqual(200m, _stockExchange.GetLastStockPrice(dionica1)); }