void CheckEmpty(MKPolygon pg) { // MKAnnotation Assert.That(pg.Coordinate.Longitude, Is.NaN, "Coordinate.Longitude"); Assert.That(pg.Coordinate.Latitude, Is.NaN, "Coordinate.Latitude"); Assert.Null(pg.Title, "Title"); Assert.Null(pg.Subtitle, "Subtitle"); // MKOverlay Assert.True(Double.IsPositiveInfinity(pg.BoundingMapRect.Origin.X), "BoundingMapRect.Origin.X"); Assert.True(Double.IsPositiveInfinity(pg.BoundingMapRect.Origin.Y), "BoundingMapRect.Origin.Y"); Assert.True(Double.IsNegativeInfinity(pg.BoundingMapRect.Size.Height), "BoundingMapRect.Size.Height"); Assert.True(Double.IsNegativeInfinity(pg.BoundingMapRect.Size.Width), "BoundingMapRect.Size.Width"); Assert.False(pg.Intersects(pg.BoundingMapRect), "Intersect/Self"); MKMapRect rect = new MKMapRect(0, 0, 0, 0); Assert.False(pg.Intersects(rect), "Intersect/Empty"); ShapeTest.CheckShape(pg); }