Пример #1
0
        public void EngineCheckerTest()
        {
            var gas        = new GasTurbineEngine("gas");
            var engChecker = new EngineChecker();

            Assert.DoesNotThrow(() => engChecker.Check(gas));
        }
Пример #2
0
 public void Init()
 {
     cap       = 10;
     capTank   = 100;
     engaged   = 0;
     model     = "Test";
     reEngine  = new ReactiveEngine("react");
     turEngine = new TurbopropEngine("react");
     hEngine   = new GasTurbineEngine("gastour");
 }
Пример #3
0
        public void BaseTests(int newSpeed)
        {
            var gas = new GasTurbineEngine("gas");
            var re  = new ReactiveEngine("gas");
            var tur = new TurbopropEngine("gas");

            Assert.DoesNotThrow(() => gas.ChangeSpeed(newSpeed));
            Assert.DoesNotThrow(() => re.ChangeSpeed(newSpeed));
            Assert.DoesNotThrow(() => tur.ChangeSpeed(newSpeed));
            Assert.DoesNotThrow(() => gas.Fly());
            Assert.DoesNotThrow(() => re.Fly());
            Assert.DoesNotThrow(() => tur.Fly());
        }
Пример #4
0
        public void FlyToTests(EngineBase.Direction dir)
        {
            var gas = new GasTurbineEngine("gas");

            Assert.DoesNotThrow(() => gas.FlyTo(dir));
        }