Exemple #1
0
        public void Calculate_Compound_Interest()
        {
            double p = 200, r = 25, y = 6;
            int    t = 20;

            A.CallTo(() => ci.CompoundInterestMethod(p, r, t, y)).Returns(3.655);
            Assert.AreEqual(3.655, ci.CompoundInterestMethod(p, r, t, y));
        }