public void whenConvertingMPHToKMPH_thenSuccessfullyConverted() { Movable bugattiVeyron = new BugattiVeyron(); MovableAdapter bugattiVeyronAdapter = new MovableAdapterImpl(bugattiVeyron); assertEquals(bugattiVeyronAdapter.getSpeed(), 431.30312, 0.00001); }
public void WHenConvertingMPHtoKMPH_Success() { Movable bugatti = new BugattiVeyron(); MovableAdapter movableAdapter = new MovableAdapterImpl(bugatti); Assert.AreEqual(movableAdapter.GetSpeed(), 431.30312); }
public void WHenConvertingUSDtoEURO_Success() { BugattiVeyron bugatti = new BugattiVeyron(); PriceAdapterImpl movableAdapter = new PriceAdapterImpl(bugatti); Assert.AreEqual(movableAdapter.GetPrice(), 84); }
public void whenConvertingUSDToEuro() { Movable bugattiVeyron = new BugattiVeyron(); MovableAdapter bugattiVeyronAdapter = new MovableAdapterImpl(bugattiVeyron); Assert.AreEqual(bugattiVeyronAdapter.GetPrice(), 119, 0.00001); }
public void WhenConvertingKPHToEuro_thenSuccessfullyConverted() { Movable bugattiVeyron = new BugattiVeyron(); MovableAdapter bugattiVeyronAdapter = new MovableAdapterImpl(bugattiVeyron); Assert.AreEqual(bugattiVeyronAdapter.GetPrice(), 119, 0.00001); }
public void whenConvertingUSDToEuro_thenSuccessFullyConvertes() { Movable buggatiVeyron = new BugattiVeyron(); MovableAdaptor buggatiVeyronAdaptor = new MovableAdapterImpl(buggatiVeyron); Assert.AreEqual(buggatiVeyronAdaptor.getPrice(), 168.0); }
public void whenConvertingMPHToKMPH_thenSuccessFullyConverted() { Movable bugattiVeyron = new BugattiVeyron(); MovableAdaptor buggatiVeyronAdaptor = new MovableAdapterImpl(bugattiVeyron); Assert.AreEqual(buggatiVeyronAdaptor.getSpeed(), 431.30312); }
public void whenConvertingUSDToEuro_thenSuccessfullyConverted() { Price P = new BugattiVeyron(); PriceAdapter Price_Adapter = new PriceAdapterUsdToEuro(P); Assert.AreEqual(Price_Adapter.GetPrice(), 84); }