Пример #1
0
        public void FlightSimulatorBasic3SegmentRightTurnTest()
        {
            var aircraft = new Boeing747_400();
            var settings = new List <double>()
            {
                1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0
            };
            FlightSimulator sim = new FlightSimulator(aircraft, new Point3D(50000, 50000, 0, CoordinateUnit.metric), 3, settings);

            sim.Simulate();

            Assert.AreEqual(50000, sim._x, 150);
            Assert.AreEqual(50000, sim._y, 150);
        }
Пример #2
0
        public void FlightSimulatorFlyFarStraightTest()
        {
            var aircraft = new Boeing747_400();
            var settings = new List <double>()
            {
                1, 1, 1
            };
            FlightSimulator sim = new FlightSimulator(aircraft, new Point3D(50000, 0, 0, CoordinateUnit.metric), 1, settings);

            sim.Simulate();

            Assert.AreEqual(50000, sim._x, 150);
            Assert.AreEqual(0, sim._y, 0.001);
        }