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

            assertEquals(bugattiVeyronAdapter.getSpeed(), 431.30312, 0.00001);
        }
예제 #2
0
        public void whenConvertingMPHToKMPH_thenSuccessFullyConverted()
        {
            Movable        bugattiVeyron        = new BugattiVeyron();
            MovableAdaptor buggatiVeyronAdaptor = new MovableAdapterImpl(bugattiVeyron);

            Assert.AreEqual(buggatiVeyronAdaptor.getSpeed(), 431.30312);
        }