@Test public void testDecrementSpeed() throws Exception { double expected = 0; saab.currentSpeed = 2.5; saab.decrementSpeed(2); double actual = saab.currentSpeed; assertEquals(expected, actual, 0.0001); }
@Test public void testSetTubroOff() throws Exception { boolean expected = false; saab.setTurboOff(); boolean actual = saab.turboOn; assertEquals(expected, actual); }