Ejemplo n.º 1
0
        public void AnnualSalaryCalculation_GivenRoundConsultingRate_ThenRoundSalaryValue()
        {
            //arrange

            //act
            decimal annualSalary = sc.GetAnnualSalary(50);

            //assert
            Assert.AreEqual(104000, annualSalary, "You didn't get the right value for the annual salary calculation");
        }
Ejemplo n.º 2
0
        public void AnnualSalaryTest()
        {
            // Arrange
            var sc = new SalaryCalculator();
            // Act
            decimal annunalSalary = sc.GetAnnualSalary(50);

            // Assert
            Assert.AreEqual(104000, annunalSalary);
        }
Ejemplo n.º 3
0
        public void Test1()
        {
            //Hazırlama Aşaması
            SalaryCalculator salaryCalculator = new SalaryCalculator();

            //Hareket Aşaması - Act
            decimal annualSalary = salaryCalculator.GetAnnualSalary(40);

            //İddia Etme Aşaması - Assert
            Assert.Equal(93600, annualSalary);
        }
Ejemplo n.º 4
0
        public void AnnualSalaryTest()
        {
            /* Red phase: Create a test that most likely fail */

            //Arrange
            SalaryCalculator _calc = new SalaryCalculator();

            //Act
            decimal annualSalary = _calc.GetAnnualSalary(50);

            //Assert
            Assert.AreEqual(104000, annualSalary);
        }
        public void AnnualSalaryTest()
        {
            decimal annualSalary = sc.GetAnnualSalary(50);

            Assert.AreEqual(104000, annualSalary);
        }