public void TestItAddsCoordinationPoints() { CoordinationPoint coordinationPoint = CoordinationPointFactory.Make(); collection.Add(coordinationPoint); Assert.Equal(coordinationPoint, collection.CoordinationPoints[0]); }
public void TestItReturnsElementsInOrder() { OutputGroup group1 = new("1"); OutputGroup group2 = new("2"); outputGroups.AddGroupWithFiles(group1, new List <string> { "foo.txt" }); outputGroups.AddGroupWithFiles(group2, new List <string> { "goo.txt" }); Sectorline line1 = SectorlineFactory.Make(definition: DefinitionFactory.Make("foo.txt")); Sectorline line2 = SectorlineFactory.Make(definition: DefinitionFactory.Make("goo.txt")); CircleSectorline line3 = CircleSectorlineFactory.Make(definition: DefinitionFactory.Make("foo.txt")); Sector sector1 = SectorFactory.Make(definition: DefinitionFactory.Make("goo.txt")); Sector sector2 = SectorFactory.Make(definition: DefinitionFactory.Make("foo.txt")); CoordinationPoint point1 = CoordinationPointFactory.Make(false, definition: DefinitionFactory.Make("foo.txt")); CoordinationPoint point2 = CoordinationPointFactory.Make(true, definition: DefinitionFactory.Make("foo.txt")); CoordinationPoint point3 = CoordinationPointFactory.Make(false, definition: DefinitionFactory.Make("goo.txt")); sectorElements.Add(line1); sectorElements.Add(line2); sectorElements.Add(line3); sectorElements.Add(sector1); sectorElements.Add(sector2); sectorElements.Add(point1); sectorElements.Add(point2); sectorElements.Add(point3); IEnumerable <ICompilableElementProvider> expected = new List <ICompilableElementProvider>() { line1, line3, line2, sector2, sector1, point1, point3, point2 }; AssertCollectedItems(expected); }
public CoordinationPointTest() { this.model = new CoordinationPoint( false, "*", "*", "ABTUM", "EGKK", "26L", "TCE", "TCSW", "*", "14000", "ABTUMDES", DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ); }
] // Climb unspecified, descend unspecified public void TestItAddsInternalCoordinationPoints(string line, string climbLevel, string descendLevel) { RunParserOnLines(new List <string> { line }); CoordinationPoint result = sectorElementCollection.CoordinationPoints[0]; Assert.False(result.IsFirCopx); Assert.Equal(CoordinationPoint.DataNotSpecified, result.DepartureAirportOrFixBefore); Assert.Equal(CoordinationPoint.DataNotSpecified, result.DepartureRunway); Assert.Equal("HEMEL", result.CoordinationFix); Assert.Equal("EGBB", result.ArrivalAirportOrFixAfter); Assert.Equal(CoordinationPoint.DataNotSpecified, result.ArrivalRunway); Assert.Equal("London AC Worthing", result.FromSector); Assert.Equal("London AC Dover", result.ToSector); Assert.Equal(climbLevel, result.ClimbLevel); Assert.Equal(descendLevel, result.DescendLevel); Assert.Equal("|HEMEL20", result.Name); AssertExpectedMetadata(result); }
public void TestItAddsFirCoordinationPoints() { RunParserOnLines( new List <string>(new[] { "FIR_COPX:*:*:HEMEL:EGBB:*:London AC Worthing:London AC Dover:*:25000:|HEMEL20 ;comment" }) ); CoordinationPoint result = sectorElementCollection.CoordinationPoints[0]; Assert.True(result.IsFirCopx); Assert.Equal(CoordinationPoint.DataNotSpecified, result.DepartureAirportOrFixBefore); Assert.Equal(CoordinationPoint.DataNotSpecified, result.DepartureRunway); Assert.Equal("HEMEL", result.CoordinationFix); Assert.Equal("EGBB", result.ArrivalAirportOrFixAfter); Assert.Equal(CoordinationPoint.DataNotSpecified, result.ArrivalRunway); Assert.Equal("London AC Worthing", result.FromSector); Assert.Equal("London AC Dover", result.ToSector); Assert.Equal(CoordinationPoint.DataNotSpecified, result.ClimbLevel); Assert.Equal("25000", result.DescendLevel); Assert.Equal("|HEMEL20", result.Name); AssertExpectedMetadata(result); }