Exemplo n.º 1
0
        public void MonthlySalary_AnnualSalaryIs60055_Returns5005()
        {
            //Arrange
            var magicCalculator = new MagicCalculator();

            //Act

            var monthlySalary = magicCalculator.MonthlySalary(60055);
            var result        = magicCalculator.RoundedMonthlySalary(monthlySalary);

            //Assert
            Assert.AreEqual(5005, result);
        }
Exemplo n.º 2
0
        // is this the right way to write this --- feels too specific
        public void MonthlySalary_AnnualSalaryIs60050_Returns5004()
        {
            //Arrange
            var magicCalculator = new MagicCalculator();

            //Act
            // should I be making 60050 as a variable
            var monthlySalary = magicCalculator.MonthlySalary(60050);
            var result        = magicCalculator.RoundedMonthlySalary(monthlySalary);


            //Assert
            Assert.AreEqual(5004, result);
        }