Пример #1
0
        public void WHenConvertingMPHtoKMPH_Success()
        {
            Movable        bugatti        = new BugattiVeyron();
            MovableAdapter movableAdapter = new MovableAdapterImpl(bugatti);

            Assert.AreEqual(movableAdapter.GetSpeed(), 431.30312);
        }
Пример #2
0
        public void whenConvertingMPHToKMPH_thenSuccessfullyConverted()
        {
            Movable        bugattiVeyron        = new BugattiVeyron();
            MovableAdapter bugattiVeyronAdapter = new MovableAdapterImpl(bugattiVeyron);

            Assert.AreEqual(bugattiVeyronAdapter.GetSpeed(), 431.30312, 0.00001);
        }