Ejemplo n.º 1
0
        public void whenConvertingMPHToKMPH_thenSuccessfullyConverted()
        {
            Movable        bugattiVeyron        = new BugattiVeyron();
            MovableAdapter bugattiVeyronAdapter = new MovableAdapterImpl(bugattiVeyron);

            assertEquals(bugattiVeyronAdapter.getSpeed(), 431.30312, 0.00001);
        }
Ejemplo n.º 2
0
        public void WHenConvertingMPHtoKMPH_Success()
        {
            Movable        bugatti        = new BugattiVeyron();
            MovableAdapter movableAdapter = new MovableAdapterImpl(bugatti);

            Assert.AreEqual(movableAdapter.GetSpeed(), 431.30312);
        }
Ejemplo n.º 3
0
        public void WHenConvertingUSDtoEURO_Success()
        {
            BugattiVeyron    bugatti        = new BugattiVeyron();
            PriceAdapterImpl movableAdapter = new PriceAdapterImpl(bugatti);

            Assert.AreEqual(movableAdapter.GetPrice(), 84);
        }
Ejemplo n.º 4
0
        public void whenConvertingUSDToEuro()
        {
            Movable        bugattiVeyron        = new BugattiVeyron();
            MovableAdapter bugattiVeyronAdapter = new MovableAdapterImpl(bugattiVeyron);

            Assert.AreEqual(bugattiVeyronAdapter.GetPrice(), 119, 0.00001);
        }
Ejemplo n.º 5
0
        public void WhenConvertingKPHToEuro_thenSuccessfullyConverted()
        {
            Movable        bugattiVeyron        = new BugattiVeyron();
            MovableAdapter bugattiVeyronAdapter = new MovableAdapterImpl(bugattiVeyron);

            Assert.AreEqual(bugattiVeyronAdapter.GetPrice(), 119, 0.00001);
        }
Ejemplo n.º 6
0
        public void whenConvertingUSDToEuro_thenSuccessFullyConvertes()
        {
            Movable        buggatiVeyron        = new BugattiVeyron();
            MovableAdaptor buggatiVeyronAdaptor = new MovableAdapterImpl(buggatiVeyron);

            Assert.AreEqual(buggatiVeyronAdaptor.getPrice(), 168.0);
        }
Ejemplo n.º 7
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);
        }