예제 #1
0
 public void ShouldDisplayGeareShiftedGivenStartedThenShiftGear()
 {
     var car = new Car("Started");
     car.ShiftGear();
     var message = car.Display();
     Assert.AreEqual("GearShifted", message);
 }
예제 #2
0
 public void ShouldDisplayFlameoutGivenFlameoutThenShiftGear()
 {
     var car = new Car("Flameout");
     car.ShiftGear();
     var message = car.Display();
     Assert.AreEqual("Flameout", message);
 }
예제 #3
0
 public void ShouldDisplayMovingGivenStartedShiftGearThenStepOnTheGas()
 {
     var car = new Car("Started");
     car.ShiftGear();
     car.StepOnGas();
     var message = car.Display();
     Assert.AreEqual("Moving", message);
 }