Exemple #1
0
        public void checkSumOFKeyValue_MS()
        {
            double stockValue = PortfolioStock.sumOfOnePortkeyAndPortValue("MS", 20);

            Assert.AreEqual(1000, stockValue);
            Assert.AreNotEqual(2000, stockValue);
            Assert.AreNotEqual(-300, stockValue);
        }
Exemple #2
0
        public void checkSumOFKeyValue_GOOG()
        {
            double stockValue = PortfolioStock.sumOfOnePortkeyAndPortValue("GOOG", 10);

            Assert.AreEqual(500, stockValue);
            Assert.AreNotEqual(600, stockValue);
            Assert.AreNotEqual(-200, stockValue);
        }
Exemple #3
0
        public void checkSumOFKeyValueNotEqual_INFS()
        {
            double stockValue = PortfolioStock.sumOfOnePortkeyAndPortValue("INFS", 50);

            Assert.AreNotEqual(1000, stockValue);
        }