예제 #1
0
        public void Test_CreateIPortfolio_Simple()
        {
            // Dodaje se par portfelja i provjerava postoje li na burzi

            string portfelj1 = "portfelj1";

            _stockExchange.CreatePortfolio(portfelj1);
            string portfelj2 = "portfelj2";

            _stockExchange.CreatePortfolio(portfelj2);

            Assert.True(_stockExchange.PortfolioExists(portfelj1));
            Assert.True(_stockExchange.PortfolioExists(portfelj2));
            Assert.AreEqual(2, _stockExchange.NumberOfPortfolios());
        }
예제 #2
0
 public void Test_StockExchangeAtTheBeginig()
 {
     Assert.AreEqual(0, _stockExchange.NumberOfStocks());
     Assert.AreEqual(0, _stockExchange.NumberOfIndices());
     Assert.AreEqual(0, _stockExchange.NumberOfPortfolios());
 }