public void EngineCheckerTest() { var gas = new GasTurbineEngine("gas"); var engChecker = new EngineChecker(); Assert.DoesNotThrow(() => engChecker.Check(gas)); }
public void Init() { cap = 10; capTank = 100; engaged = 0; model = "Test"; reEngine = new ReactiveEngine("react"); turEngine = new TurbopropEngine("react"); hEngine = new GasTurbineEngine("gastour"); }
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()); }
public void FlyToTests(EngineBase.Direction dir) { var gas = new GasTurbineEngine("gas"); Assert.DoesNotThrow(() => gas.FlyTo(dir)); }