public void TestItAddsRunwayExits(string exitLine, string expectedDirection)
        {
            RunParserOnLines(
                new List <string>()
            {
                exitLine,
                "COORD:N050.57.00.000:W001.21.24.490 ;comment1",
                "COORD:N050.57.00.000:W001.21.24.491 ;comment2"
            }
                );

            Assert.Single(sectorElementCollection.GroundNetworks);
            Assert.Equal("TESTFOLDER", sectorElementCollection.GroundNetworks[0].Airport);
            Assert.Single(sectorElementCollection.GroundNetworks[0].RunwayExits);

            GroundNetworkRunwayExit exit = sectorElementCollection.GroundNetworks[0].RunwayExits[0];

            Assert.Equal("26L", exit.Runway);
            Assert.Equal("A1", exit.ExitName);
            Assert.Equal(expectedDirection, exit.Direction);
            Assert.Equal(15, exit.MaximumSpeed);
            Assert.Equal(2, exit.Coordinates.Count);
            Assert.Equal(new Coordinate("N050.57.00.000", "W001.21.24.490"), exit.Coordinates[0].Coordinate);
            AssertExpectedMetadata(exit.Coordinates[0], 2, "comment1");
            Assert.Equal(new Coordinate("N050.57.00.000", "W001.21.24.491"), exit.Coordinates[1].Coordinate);
            AssertExpectedMetadata(exit.Coordinates[1], 3, "comment2");
            AssertExpectedMetadata(exit);
        }
 public GroundNetworkRunwayExitTest()
 {
     coordinate1 = GroundNetworkCoordinateFactory.Make(new Coordinate("abc", "def"));
     coordinate2 = GroundNetworkCoordinateFactory.Make(new Coordinate("abc", "ghi"));
     coordinates = new List <GroundNetworkCoordinate>
     {
         coordinate1,
         coordinate2
     };
     exit = new GroundNetworkRunwayExit(
         "27L",
         "N3W",
         "LEFT",
         15,
         coordinates,
         DefinitionFactory.Make(),
         DocblockFactory.Make(),
         CommentFactory.Make()
         );
 }
Esempio n. 3
0
        public GroundNetworkTest()
        {
            taxiway1 = GroundNetworkTaxiwayFactory.Make();
            taxiway2 = GroundNetworkTaxiwayFactory.Make();
            taxiways = new List <GroundNetworkTaxiway>
            {
                taxiway1,
                taxiway2
            };
            exit1 = GroundNetworkRunwayExitFactory.Make();
            exit2 = GroundNetworkRunwayExitFactory.Make();
            exits = new List <GroundNetworkRunwayExit>
            {
                exit1,
                exit2
            };

            network = new GroundNetwork(
                "EGLL",
                taxiways,
                exits
                );
        }