Esempio n. 1
0
 public void ShouldDisplayStartedAfterStarting()
 {
     var car = new Car();
     car.Start();
     var message = car.Display();
     Assert.AreEqual("Started", message);
 }
Esempio n. 2
0
 public void ShouldDisplayIdleGivenStartedThenStepOnTheGas()
 {
     var car = new Car("Started");
     car.StepOnGas();
     var message = car.Display();
     Assert.AreEqual("Idle", message);
 }
Esempio n. 3
0
 public void ShouldDisplayGeareShiftedGivenStartedThenShiftGear()
 {
     var car = new Car("Started");
     car.ShiftGear();
     var message = car.Display();
     Assert.AreEqual("GearShifted", message);
 }
Esempio n. 4
0
 public void ShouldDisplayFlameoutGivenFlameoutThenStepOnTheGas()
 {
     var car = new Car("Flameout");
     car.StepOnGas();
     var message = car.Display();
     Assert.AreEqual("Flameout", message);
 }
Esempio n. 5
0
 public void ShouldDisplayMovingGivenStartedShiftGearThenStepOnTheGas()
 {
     var car = new Car("Started");
     car.ShiftGear();
     car.StepOnGas();
     var message = car.Display();
     Assert.AreEqual("Moving", message);
 }
Esempio n. 6
0
 public void ShouldDisplayFlameoutAtStart()
 {
     var car = new Car();
     var message = car.Display();
     Assert.AreEqual("Flameout", message);
 }