예제 #1
0
    public void TopOfTheLineCarHasCorrectSpeed()
    {
        var car = RemoteControlCar.TopOfTheLine();

        car.Drive();
        Assert.Equal(50, car.DistanceDriven());
    }
예제 #2
0
    public void Top_of_the_line_car_has_correct_speed()
    {
        var car = RemoteControlCar.TopOfTheLine();

        car.Drive();
        Assert.Equal(50, car.DistanceDriven());
    }
예제 #3
0
    public void TopOfTheLineHasCorrectBatteryDrain()
    {
        var car = RemoteControlCar.TopOfTheLine();

        // The battery is almost drained
        for (var i = 0; i < 24; i++)
        {
            car.Drive();
        }

        Assert.False(car.BatteryDrained());

        // Drain the battery
        car.Drive();

        Assert.True(car.BatteryDrained());
    }
예제 #4
0
    public void TopOfTheLineCarHasBatteryNotDrained()
    {
        var car = RemoteControlCar.TopOfTheLine();

        Assert.False(car.BatteryDrained());
    }
예제 #5
0
    public void TopOfTheLineCarHasNotDrivenAnyDistance()
    {
        var car = RemoteControlCar.TopOfTheLine();

        Assert.Equal(0, car.DistanceDriven());
    }
예제 #6
0
    public void Top_of_the_line_car_has_battery_not_drained()
    {
        var car = RemoteControlCar.TopOfTheLine();

        Assert.False(car.BatteryDrained());
    }
예제 #7
0
    public void Top_of_the_line_car_has_not_driven_any_distance()
    {
        var car = RemoteControlCar.TopOfTheLine();

        Assert.Equal(0, car.DistanceDriven());
    }