public void SuggestsRetainingTheCurrentGearWhenBelowRange() { var program = new RpmBasedShiftingProgram(Range); var suggestedAction = program.GetSuggestedActionFor(IrrelevantGear, BelowLowerValue); Assert.AreEqual(SuggestedAction.Downshift, suggestedAction); }
public void SuggestsRetainingTheCurrentGearWhenWithinRange() { var program = new RpmBasedShiftingProgram(Range); var suggestedAction = program.GetSuggestedActionFor(IrrelevantGear, MiddleValue); Assert.AreEqual(SuggestedAction.Retain, suggestedAction); }