public AllCoordinationPointsMustHaveValidNextTest() { sectorElements.Add(FixFactory.Make("testfix")); sectorElements.Add(VorFactory.Make("testvor")); sectorElements.Add(NdbFactory.Make("testndb")); sectorElements.Add(AirportFactory.Make("testairport")); }
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")); }
public AllCircleSectorlinesMustHaveValidCentreTest() { sectorElements.Add(FixFactory.Make("testfix")); sectorElements.Add(VorFactory.Make("testvor")); sectorElements.Add(NdbFactory.Make("testndb")); sectorElements.Add(AirportFactory.Make("testairport")); }
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")); }
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")); }
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); }