public void WhenSetDriveModeGearboxStateChangedToDrive() { var gearbox = new Gearbox(); var leverAdapter = new LeverAdapter(gearbox); leverAdapter.SetDriveMode(); Assert.AreEqual(gearbox.getState(), 1); }
public void WhenSetNeutralModeGearboxStateChangedToNeutral() { var gearbox = new Gearbox(); var leverAdapter = new LeverAdapter(gearbox); leverAdapter.SetNeutralMode(); Assert.AreEqual(gearbox.getState(), 4); }