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 = AerosoftAirbusProvider.GetExportText(route); var expected = @"[CoRte] ArptDep=RJBB ArptArr=RJAA RwyDep=RJBB06L RwyArr=RJAA18 DctWpt1=WPT0 DctWpt1Coordinates=0.000000,10.000000 Airway2=B Airway2FROM=WPT0 Airway2TO=WPT1 DctWpt3=WPT2 DctWpt3Coordinates=0.000000,2.500000 "; Assert.IsTrue(expected.EqualsIgnoreNewlineStyle(text)); }
public void GetExportTextNoWaypontDoesNotThrow() { var route = Common.GetRoute( new Waypoint("RJBB06L", 0.0, 0.0), "DCT", -1.0, new Waypoint("RJAA18", 0.0, 3.0)); var text = AerosoftAirbusProvider.GetExportText(new ExportInput() { Route = route }); }