Beispiel #1
0
        public void GetEnvelope_ReturnsEmptyEnvelopeForEmptyPolygon()
        {
            Polygon target = new Polygon();
            double x = double.NaN;
            bool test = x == double.NaN;
            Envelope envelope = target.GetEnvelope();

            Assert.Equal(Envelope.Empty, envelope);
        }
Beispiel #2
0
        public void GetEnvelopeReturnsEnvelopeOfLineString()
        {
            Envelope expectedEnvelope = new Envelope(_coordinatesXYZ);

            Polygon target = new Polygon(_exteriorRing3D);
            Envelope envelope = target.GetEnvelope();

            Assert.Equal(expectedEnvelope, envelope);
        }