示例#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 TestItAddsNdbs()
        {
            Ndb ndb = NdbFactory.Make();

            collection.Add(ndb);

            Assert.Equal(ndb, collection.Ndbs[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"));
        }
        public void TestItReturnsElementsInOrder()
        {
            Ndb first  = NdbFactory.Make("EX");
            Ndb second = NdbFactory.Make("BRI");
            Ndb third  = NdbFactory.Make("OF");

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

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

            AssertCollectedItems(expected);
        }