Beispiel #1
0
        void should_calculate_waiting_time_ignoring_starting_mileage_and_considering_speed(int waitingSeconds, double startMileages, double[] kilosBySecond)
        {
            var waitingTimeCalculator = new WaitingTimeCalculator(kilosBySecond);

            Assert.Equal(waitingSeconds, waitingTimeCalculator.CalcWaitingTime(startMileages));
        }
Beispiel #2
0
        void should_calculate_waiting_time_when_speed_is_lower_than_120_km_per_hour(int waitingSeconds, int startIndex, double[] kilosBySecond)
        {
            var waitingTimeCalculator = new WaitingTimeCalculator(kilosBySecond);

            Assert.Equal(waitingSeconds, waitingTimeCalculator.CalcWaitingTime(startIndex, kilosBySecond.Length));
        }
Beispiel #3
0
        void should_calculate_waiting_time_as_0_when_start_index_is_out_of_range(int waitingSeconds, int startIndex, double[] kilosBySecond)
        {
            var waitingTimeCalculator = new WaitingTimeCalculator(kilosBySecond);

            Assert.Equal(waitingSeconds, waitingTimeCalculator.CalcWaitingTime(startIndex, kilosBySecond.Length));
        }