Пример #1
0
        public void TestMethodSavingsRate()
        {
            // Arrange
            double totalIncome      = 250000;
            double totalConsumption = 170000;
            double expected         = 0.32;
            //Act
            double actual = Calculator.SavingsRate(totalIncome, totalConsumption);

            //Assert
            Assert.AreEqual(expected, actual, 0.001, "Rate not calculated correctly");
        }