public void CarCanGearUpFromReverseGear() { var car = new Car(); car.SetState(new ReverseGearState()); Assert.That(car.CanGearUp(), Is.True); }
public void CarCannotGearGoReverseFromReverseGear() { var car = new Car(); car.SetState(new ReverseGearState()); Assert.That(car.CanReverse(), Is.False); }
public void CarCannotGearUpFromFirstGear() { var car = new Car(); car.SetState(new FirstGearState()); Assert.That(car.CanGearUp(), Is.False); }