예제 #1
0
 public AllSctSidsMustHaveAValidRouteTest()
 {
     sectorElements.Add(FixFactory.Make("testfix"));
     sectorElements.Add(VorFactory.Make("testvor"));
     sectorElements.Add(NdbFactory.Make("testndb"));
     sectorElements.Add(AirportFactory.Make("testairport"));
 }
예제 #2
0
 public AllCoordinationPointsMustHaveValidNextTest()
 {
     sectorElements.Add(FixFactory.Make("testfix"));
     sectorElements.Add(VorFactory.Make("testvor"));
     sectorElements.Add(NdbFactory.Make("testndb"));
     sectorElements.Add(AirportFactory.Make("testairport"));
 }
 public AllRegionsMustHaveValidPointsTest()
 {
     sectorElements.Add(FixFactory.Make("testfix"));
     sectorElements.Add(VorFactory.Make("testvor"));
     sectorElements.Add(NdbFactory.Make("testndb"));
     sectorElements.Add(AirportFactory.Make("testairport"));
 }
예제 #4
0
 public AllCircleSectorlinesMustHaveValidCentreTest()
 {
     sectorElements.Add(FixFactory.Make("testfix"));
     sectorElements.Add(VorFactory.Make("testvor"));
     sectorElements.Add(NdbFactory.Make("testndb"));
     sectorElements.Add(AirportFactory.Make("testairport"));
 }
예제 #5
0
 public RoutePointValidatorTest()
 {
     sectorElements = new SectorElementCollection();
     sectorElements.Add(FixFactory.Make("testfix"));
     sectorElements.Add(VorFactory.Make("testvor"));
     sectorElements.Add(NdbFactory.Make("testndb"));
     sectorElements.Add(AirportFactory.Make("testairport"));
 }
        public void TestItAddsVors()
        {
            Vor vor = VorFactory.Make();

            collection.Add(vor);

            Assert.Equal(vor, collection.Vors[0]);
        }
        public AllSidsMustHaveAValidRouteTest()
        {
            first  = SidStarFactory.Make(route: new List <string>(new[] { "testfix", "testvor", "testndb", "testairport" }));
            second = SidStarFactory.Make(route: new List <string>(new[] { "nottestfix", "testvor", "testndb", "testairport" }));

            sectorElements.Add(FixFactory.Make("testfix"));
            sectorElements.Add(VorFactory.Make("testvor"));
            sectorElements.Add(NdbFactory.Make("testndb"));
            sectorElements.Add(AirportFactory.Make("testairport"));
        }
예제 #8
0
        public void TestItReturnsElementsInOrder()
        {
            Vor first  = VorFactory.Make("DVR");
            Vor second = VorFactory.Make("BIG");
            Vor third  = VorFactory.Make("KOK");

            sectorElements.Add(first);
            sectorElements.Add(second);
            sectorElements.Add(third);

            IEnumerable <ICompilableElementProvider> expected = new List <ICompilableElementProvider>()
            {
                second,
                first,
                third
            };

            AssertCollectedItems(expected);
        }