Example #1
0
 public void ShouldDisplayIdleGivenStartedThenStepOnTheGas()
 {
     var car = new Car("Started");
     car.StepOnGas();
     var message = car.Display();
     Assert.AreEqual("Idle", message);
 }
Example #2
0
 public void ShouldDisplayFlameoutGivenFlameoutThenStepOnTheGas()
 {
     var car = new Car("Flameout");
     car.StepOnGas();
     var message = car.Display();
     Assert.AreEqual("Flameout", message);
 }
Example #3
0
 public void ShouldDisplayMovingGivenStartedShiftGearThenStepOnTheGas()
 {
     var car = new Car("Started");
     car.ShiftGear();
     car.StepOnGas();
     var message = car.Display();
     Assert.AreEqual("Moving", message);
 }