예제 #1
0
        public void whenConvertingUSDToEuro()
        {
            Movable        bugattiVeyron        = new BugattiVeyron();
            MovableAdapter bugattiVeyronAdapter = new MovableAdapterImpl(bugattiVeyron);

            Assert.AreEqual(bugattiVeyronAdapter.GetPrice(), 119, 0.00001);
        }
예제 #2
0
        public void WhenConvertingKPHToEuro_thenSuccessfullyConverted()
        {
            Movable        bugattiVeyron        = new BugattiVeyron();
            MovableAdapter bugattiVeyronAdapter = new MovableAdapterImpl(bugattiVeyron);

            Assert.AreEqual(bugattiVeyronAdapter.GetPrice(), 119, 0.00001);
        }