public void TestItFailsOnInvalidToSector(string firstSector, string secondSector) { sectorElements.Add(CoordinationPointFactory.Make(fromSector: firstSector)); sectorElements.Add(CoordinationPointFactory.Make(fromSector: secondSector)); AssertValidationErrors(); }
public void TestItPassesOnValidToSector(string sector) { sectorElements.Add(CoordinationPointFactory.Make(fromSector: sector)); sectorElements.Add(CoordinationPointFactory.Make(fromSector: sector)); AssertNoValidationErrors(); }
public void TestItFailsOnInvalidNext(string firstFix, string secondFix) { sectorElements.Add(CoordinationPointFactory.Make(nextPoint: firstFix)); sectorElements.Add(CoordinationPointFactory.Make(nextPoint: secondFix)); AssertValidationErrors(); }
public void TestItPassesOnValidNext(string fix) { sectorElements.Add(CoordinationPointFactory.Make(nextPoint: fix)); sectorElements.Add(CoordinationPointFactory.Make(nextPoint: fix)); AssertNoValidationErrors(); }
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); }