Пример #1
0
        public void EngineInSeabirdToAircraft()
        {
            ISeacraft seabirdToAircraft = new SeabirdToAircraft();

            ((IAircraft)seabirdToAircraft).TakeOff();
            Assert.AreEqual(100, ((IAircraft)seabirdToAircraft).Height);
            Assert.AreEqual(50, seabirdToAircraft.Speed);
            Assert.IsTrue(((IAircraft)seabirdToAircraft).Airborne);
        }
Пример #2
0
        public void IncreaseSeabirdToAircraftSpeed()
        {
            ISeacraft seabirdToAircraft = new SeabirdToAircraft();

            seabirdToAircraft.IncreaseRevs();
            seabirdToAircraft.IncreaseRevs();
            Assert.AreEqual(0, ((IAircraft)seabirdToAircraft).Height);
            Assert.AreEqual(20, seabirdToAircraft.Speed);
        }