Esempio n. 1
0
        public void CalculateNpvReturnsCorrectValue2()
        {
            //Arrange
            var initialInvestment = 500;
            var cashFlows         = new List <double>
            {
                1200, 2300
            };
            var discountRate   = 1.75;
            var financeManager = new FinanceManager();

            //Act
            var netPresentValue = financeManager.CalculateNetPresentValue(initialInvestment, discountRate, cashFlows);

            //Asset
            Assert.AreEqual(2900.93, netPresentValue);
        }