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

DomCR / ACadSharp / 18679832337

21 Oct 2025 09:46AM UTC coverage: 77.883% (-0.2%) from 78.126%
18679832337

push

github

web-flow
Merge pull request #832 from DomCR/multileader-dxf

multileader dxf

6920 of 9695 branches covered (71.38%)

Branch coverage included in aggregate %.

341 of 429 new or added lines in 16 files covered. (79.49%)

77 existing lines in 8 files now uncovered.

26664 of 33426 relevant lines covered (79.77%)

110330.18 hits per line

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

13.79
/src/ACadSharp/Entities/UnknownEntity.cs
1
using ACadSharp.Classes;
2
using CSMath;
3
using System;
4

5
namespace ACadSharp.Entities
6
{
7
        /// <summary>
8
        /// Class that holds the basic information for an unknown <see cref="Entity"/>.
9
        /// </summary>
10
        /// <remarks>
11
        /// Unknown entities may appear in the <see cref="CadDocument"/> if the cad file contains proxies or entities not yet supported by ACadSharp.
12
        /// </remarks>
13
        public class UnknownEntity : Entity
14
        {
15
                /// <inheritdoc/>
16
                public override ObjectType ObjectType => ObjectType.UNDEFINED;
×
17

18
                /// <inheritdoc/>
19
                public override string ObjectName
20
                {
21
                        get
UNCOV
22
                        {
×
UNCOV
23
                                if (this.DxfClass == null)
×
24
                                {
×
25
                                        return "UNKNOWN";
×
26
                                }
27
                                else
UNCOV
28
                                {
×
UNCOV
29
                                        return this.DxfClass.DxfName;
×
30
                                }
UNCOV
31
                        }
×
32
                }
33

34
                /// <inheritdoc/>
35
                public override string SubclassMarker
36
                {
37
                        get
UNCOV
38
                        {
×
UNCOV
39
                                if (this.DxfClass == null)
×
40
                                {
×
41
                                        return DxfSubclassMarker.Entity;
×
42
                                }
43
                                else
UNCOV
44
                                {
×
UNCOV
45
                                        return this.DxfClass.CppClassName;
×
46
                                }
UNCOV
47
                        }
×
48
                }
49

50
                /// <summary>
51
                /// Dxf class linked to this entity.
52
                /// </summary>
UNCOV
53
                public DxfClass DxfClass { get; }
×
54

55
                internal UnknownEntity(DxfClass dxfClass)
152✔
56
                {
152✔
57
                        this.DxfClass = dxfClass;
152✔
58
                }
152✔
59

60
                /// <inheritdoc/>
61
                public override void ApplyTransform(Transform transform)
62
                {
×
63
                }
×
64

65
                /// <inheritdoc/>
66
                /// <remarks>
67
                /// An Unknown Entity does not have any geometric shape, therfore it's bounding box will be always 0
68
                /// </remarks>
69
                public override BoundingBox GetBoundingBox()
70
                {
×
71
                        return BoundingBox.Null;
×
72
                }
×
73
        }
74
}
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