/// <summary>
        /// Get string of the flight plan to export.
        /// </summary>
        /// <exception cref="Exception"></exception>
        public static string GetExportText(ExportInput input)
        {
            var route = input.Route;
            var from  = route.FirstWaypoint.ID.Substring(0, 4);
            var to    = route.LastWaypoint.ID.Substring(0, 4);

            return($"RTE {from}{to}01 " + JarDesignAirbusProvider.GetExportText(input));
        }
        public void GetExportTextNoWaypont()
        {
            var route = Common.GetRoute(
                new Waypoint("RJBB06L", 0.0, 0.0), "DCT", -1.0,
                new Waypoint("RJAA18", 0.0, 3.0));

            var text = JarDesignAirbusProvider.GetExportText(route);

            var expected = "RJBB RJAA";

            Assert.IsTrue(expected.EqualsIgnoreNewlineStyle(text));
        }
        public void GetExportTextTest()
        {
            var route = Common.GetRoute(
                new Waypoint("RJBB06L", 0.0, 0.0), "A", -1.0,
                new Waypoint("WPT0", 0.0, 10.0), "B", -1.0,
                new Waypoint("WPT1", 0.0, -20.0), "DCT", -1.0,
                new Waypoint("WPT2", 0.0, 2.5), "C", -1.0,
                new Waypoint("RJAA18", 0.0, 3.0));

            var text = JarDesignAirbusProvider.GetExportText(route);

            var expected = "RJBB DCT WPT0 B WPT1 DCT WPT2 DCT RJAA";

            Assert.IsTrue(expected.EqualsIgnoreNewlineStyle(text));
        }
        public void GetExportTextCoordinateFormatIsCorrect()
        {
            var route = Common.GetRoute(
                new Waypoint("RJBB06L", 0.0, 0.0), "A", -1.0,
                new Waypoint("N10.2W20.0", 10.2, -20.0), "DCT", -1.0,
                new Waypoint("RJAA18", 0.0, 3.0));

            var text = JarDesignAirbusProvider.GetExportText(new ExportInput()
            {
                Route = route
            });

            var expected = "RJBB DCT 1012N2000W DCT RJAA";

            Assert.IsTrue(expected.EqualsIgnoreNewlineStyle(text));
        }