Exemple #1
0
        public void CalculatPriceEarningsRatioForComonStockTest()
        {
            var stockCommon = new CommonStock {
                symbol = "TEA", lastDividend = 10, parValue = 100
            };
            var currentPeRatio  = exchangeStock.CalculatePriceEarningsRatio(stockCommon, 100);
            var expectedPeRatio = 1000;

            Assert.AreEqual(expectedPeRatio, currentPeRatio);
        }