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

DomCR / ACadSharp / 10546434957

25 Aug 2024 11:09AM UTC coverage: 75.832% (-0.2%) from 75.987%
10546434957

push

github

web-flow
Merge pull request #428 from DomCR/UnknownNonGraphicalObject

Unknown None Graphical Object

4853 of 7047 branches covered (68.87%)

Branch coverage included in aggregate %.

54 of 62 new or added lines in 11 files covered. (87.1%)

69 existing lines in 25 files now uncovered.

19285 of 24784 relevant lines covered (77.81%)

33698.64 hits per line

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

70.83
/src/ACadSharp/Objects/UnknownNonGraphicalObject.cs
1
using ACadSharp.Classes;
2

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

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

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

48
                /// <summary>
49
                /// Dxf class linked to this entity.
50
                /// </summary>
51
                public DxfClass DxfClass { get; }
100,108✔
52

53
                internal UnknownNonGraphicalObject(DxfClass dxfClass)
4,959✔
54
                {
4,959✔
55
                        this.DxfClass = dxfClass;
4,959✔
56
                }
4,959✔
57
        }
58
}
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