< Summary

Class:Azure.Core.GeoJson.GeoPolygon
Assembly:Azure.Core.Experimental
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core.Experimental\src\Spatial\GeoPolygon.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:40
Line coverage:100% (7 of 7)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
.ctor(...)-100%100%
get_Rings()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core.Experimental\src\Spatial\GeoPolygon.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using System.Linq;
 6
 7namespace Azure.Core.GeoJson
 8{
 9    /// <summary>
 10    /// Represents a polygon consisting of outer ring and optional inner rings.
 11    /// </summary>
 12    public sealed class GeoPolygon : GeoObject
 13    {
 14        /// <summary>
 15        /// Initializes new instance of <see cref="GeoPolygon"/>.
 16        /// </summary>
 17        /// <param name="rings">The collection of rings that make up the polygon, first ring is the outer ring others ar
 3218        public GeoPolygon(IEnumerable<GeoLine> rings): this(rings, null, DefaultProperties)
 19        {
 3220        }
 21
 22        /// <summary>
 23        /// Initializes new instance of <see cref="GeoPolygon"/>.
 24        /// </summary>
 25        /// <param name="rings">The collection of rings that make up the polygon, first ring is the outer ring others ar
 26        /// <param name="boundingBox">The <see cref="GeoBoundingBox"/> to use.</param>
 27        /// <param name="additionalProperties">The set of additional properties associated with the <see cref="GeoObject
 6428        public GeoPolygon(IEnumerable<GeoLine> rings, GeoBoundingBox? boundingBox, IReadOnlyDictionary<string, object?> 
 29        {
 6430            Argument.AssertNotNull(rings, nameof(rings));
 31
 6432            Rings = rings.ToArray();
 6433        }
 34
 35        /// <summary>
 36        /// Gets a set of rings that form the polygon.
 37        /// </summary>
 8838        public IReadOnlyList<GeoLine> Rings { get; }
 39    }
 40}

Methods/Properties

.ctor(...)
.ctor(...)
get_Rings()