• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 14236632495

03 Apr 2025 06:41AM UTC coverage: 76.148% (-0.2%) from 76.343%
14236632495

Pull #525

github

web-flow
Merge 7f8069492 into 04434c5d6
Pull Request #525: Issue-524 Explode Hatch

5584 of 8036 branches covered (69.49%)

Branch coverage included in aggregate %.

6 of 99 new or added lines in 17 files covered. (6.06%)

6 existing lines in 5 files now uncovered.

22073 of 28284 relevant lines covered (78.04%)

74241.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

47.37
/src/ACadSharp/Entities/PolyLine2D.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3
using System;
4
using System.Collections.Generic;
5

6
namespace ACadSharp.Entities
7
{
8
        /// <summary>
9
        /// Represents a <see cref="Polyline2D"/> entity.
10
        /// </summary>
11
        /// <remarks>
12
        /// Object name <see cref="DxfFileToken.EntityPolyline"/> <br/>
13
        /// Dxf class name <see cref="DxfSubclassMarker.Polyline"/>
14
        /// </remarks>
15
        [DxfName(DxfFileToken.EntityPolyline)]
16
        [DxfSubClass(DxfSubclassMarker.Polyline)]
17
        public class Polyline2D : Polyline
18
        {
19
                /// <inheritdoc/>
20
                public override ObjectType ObjectType => ObjectType.POLYLINE_2D;
1✔
21

22
                /// <inheritdoc/>
23
                public override string SubclassMarker => DxfSubclassMarker.Polyline;
8✔
24

25
                /// <inheritdoc/>
26
                public Polyline2D() : base()
20✔
27
                {
20✔
28
                }
20✔
29

NEW
30
                public Polyline2D(IEnumerable<Vertex2D> vertices, bool isColsed) : base(vertices, isColsed)
×
NEW
31
                {
×
NEW
32
                }
×
33

34
                /// <inheritdoc/>
35
                public override IEnumerable<Entity> Explode()
36
                {
×
37
                        return Polyline.Explode(this);
×
38
                }
×
39

40
                protected override void verticesOnAdd(object sender, CollectionChangedEventArgs e)
41
                {
11✔
42
                        if (e.Item is not Vertex2D)
11!
43
                        {
×
44
                                this.Vertices.Remove((Vertex)e.Item);
×
45
                                throw new ArgumentException($"Wrong vertex type for {DxfSubclassMarker.Polyline}");
×
46
                        }
47
                }
11✔
48
        }
49
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc