예제 #1
0
        public void calculate_the_money_earned_per_day(double hours, double minutes, double serviceHour, string expected)
        {
            // Dado / Setup
            var exercises = new Prova();

            // Quando / Ação
            string returnedValue = exercises.Exercise1(hours, minutes, serviceHour);

            // Deve / Asserções
            Assert.Equal(expected, returnedValue);
        }
예제 #2
0
        public void should_return_the_daily_wage_of_a_worker_based_on_how_many_hours_they_work(double hoursWork, double minutesWork, double wagePerHour, double expected)
        {
            // Dado / Setup
            var exercises = new Prova();

            // Quando / Ação
            double returnedValue = exercises.Exercise1(hoursWork, minutesWork, wagePerHour);

            // Deve / Asserções
            Assert.Equal(expected, returnedValue);
        }