public void Extend_IEnumerableCoordinate_ExtendsEnvelope() { Envelope target = new Envelope(_coordinates); target.Extend(new Coordinate[] {_lowerValues, _higherValues }); CheckBoundaries(target, _lowerValues.X, _higherValues.X, _lowerValues.Y, _higherValues.Y, _lowerValues.Z, _higherValues.Z, _lowerValues.M, _higherValues.M); }
public void Extend_IEnumerableCoordinate_SetsMinMaxValuesOnEmptyEnvelope() { Envelope target = new Envelope(); target.Extend(_coordinates); CheckBoundaries(target, _expectedBounds[0], _expectedBounds[1], _expectedBounds[2], _expectedBounds[3], _expectedBounds[4], _expectedBounds[5], _expectedBounds[6], _expectedBounds[7]); }
public void Extend_Envelope_DoNothingIfEnvelopeIsInsideTargetEnvelope() { Envelope target = new Envelope(_coordinates); target.Extend(new Envelope(_coordinates[1])); CheckBoundaries(target, _expectedBounds[0], _expectedBounds[1], _expectedBounds[2], _expectedBounds[3], _expectedBounds[4], _expectedBounds[5], _expectedBounds[6], _expectedBounds[7]); }
public void Extend_IEnumerableCoordinate_DoNothingForEmptyCollection() { Envelope target = new Envelope(_coordinates); target.Extend(new Coordinate[] {}); CheckBoundaries(target, _expectedBounds[0], _expectedBounds[1], _expectedBounds[2], _expectedBounds[3], _expectedBounds[4], _expectedBounds[5], _expectedBounds[6], _expectedBounds[7]); }
public void Extend_Coordinate_SetsMinMaxValuesOnEmptyEnvelope() { Envelope target = new Envelope(); target.Extend(_coordinates[0]); CheckBoundaries(target, _coordinates[0].X, _coordinates[0].X, _coordinates[0].Y, _coordinates[0].Y, _coordinates[0].Z, _coordinates[0].Z, _coordinates[0].M, _coordinates[0].M); }
public void Extend_Coordinate_ExtendsEnvelopeToLowerValues() { Envelope target = new Envelope(_coordinates); target.Extend(_lowerValues); CheckBoundaries(target, _lowerValues.X, _expectedBounds[1], _lowerValues.Y, _expectedBounds[3], _lowerValues.Z, _expectedBounds[5], _lowerValues.M, _expectedBounds[7]); }
public void Extend_Coordinate_ExtendsEnvelopeToHigherValues() { Envelope target = new Envelope(_coordinates); target.Extend(_higherValues); CheckBoundaries(target, _expectedBounds[0], _higherValues.X, _expectedBounds[2], _higherValues.Y, _expectedBounds[4], _higherValues.Z, _expectedBounds[6], _higherValues.M); }
public void Extend_Coordinate_DoNothingIfCoordinateIsEmpty() { Envelope target = new Envelope(_coordinates); target.Extend(Coordinate.Empty); CheckBoundaries(target, _expectedBounds[0], _expectedBounds[1], _expectedBounds[2], _expectedBounds[3], _expectedBounds[4], _expectedBounds[5], _expectedBounds[6], _expectedBounds[7]); }
public void Extend_Coordinate_DoNothingForCoordinateInsideEnvelope() { Envelope target = new Envelope(_coordinates); target.Extend(_insideCoordinate); CheckBoundaries(target, _expectedBounds[0], _expectedBounds[1], _expectedBounds[2], _expectedBounds[3], _expectedBounds[4], _expectedBounds[5], _expectedBounds[6], _expectedBounds[7]); }