public void TestItFailsOnInvalid(string firstAirport, string firstRunway, string secondAirport, string secondRunway, int failTimes)
        {
            sectorElements.Add(
                GroundNetworkFactory.Make(
                    firstAirport,
                    new List <GroundNetworkRunwayExit>
            {
                GroundNetworkRunwayExitFactory.Make(firstRunway),
                GroundNetworkRunwayExitFactory.Make(firstRunway)
            }
                    )
                );

            sectorElements.Add(
                GroundNetworkFactory.Make(
                    secondAirport,
                    new List <GroundNetworkRunwayExit>
            {
                GroundNetworkRunwayExitFactory.Make(secondRunway),
                GroundNetworkRunwayExitFactory.Make(secondRunway)
            }
                    )
                );

            AssertValidationErrors(failTimes);
        }
        public void TestItPassesOnAllValid(string firstAirport, string firstRunway, string secondAirport, string secondRunway)
        {
            sectorElements.Add(
                GroundNetworkFactory.Make(
                    firstAirport,
                    new List <GroundNetworkRunwayExit>
            {
                GroundNetworkRunwayExitFactory.Make(firstRunway),
                GroundNetworkRunwayExitFactory.Make(firstRunway)
            }
                    )
                );

            sectorElements.Add(
                GroundNetworkFactory.Make(
                    secondAirport,
                    new List <GroundNetworkRunwayExit>
            {
                GroundNetworkRunwayExitFactory.Make(secondRunway),
                GroundNetworkRunwayExitFactory.Make(secondRunway)
            }
                    )
                );

            AssertNoValidationErrors();
        }
Beispiel #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
                );
        }