Example #1
0
 public AllCoordinationPointsMustHaveValidNextTest()
 {
     sectorElements.Add(FixFactory.Make("testfix"));
     sectorElements.Add(VorFactory.Make("testvor"));
     sectorElements.Add(NdbFactory.Make("testndb"));
     sectorElements.Add(AirportFactory.Make("testairport"));
 }
Example #2
0
 public AllSctSidsMustHaveAValidRouteTest()
 {
     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"));
 }
Example #4
0
 public AllCircleSectorlinesMustHaveValidCentreTest()
 {
     sectorElements.Add(FixFactory.Make("testfix"));
     sectorElements.Add(VorFactory.Make("testvor"));
     sectorElements.Add(NdbFactory.Make("testndb"));
     sectorElements.Add(AirportFactory.Make("testairport"));
 }
Example #5
0
 public AllFixesMustBeUniqueTest()
 {
     first  = FixFactory.Make("DIKAS", new Coordinate("abc", "def"));
     second = FixFactory.Make("DIKAS", new Coordinate("abd", "cef"));
     third  = FixFactory.Make("DIKAP", new Coordinate("abc", "def"));
     fourth = FixFactory.Make("DIKAS", new Coordinate("abc", "def"));
 }
Example #6
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 TestItAddsFixes()
        {
            Fix fix = FixFactory.Make();

            collection.Add(fix);

            Assert.Equal(fix, collection.Fixes[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"));
        }
Example #9
0
        public void TestItReturnsElementsInOrder()
        {
            Fix first  = FixFactory.Make("DIKAS");
            Fix second = FixFactory.Make("BOMBO");
            Fix third  = FixFactory.Make("MONTY");

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

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

            AssertCollectedItems(expected);
        }