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

DomCR / ACadSharp / 14214082189

02 Apr 2025 07:34AM UTC coverage: 75.523% (-0.8%) from 76.343%
14214082189

Pull #457

github

web-flow
Merge b2c68aa3f into 04434c5d6
Pull Request #457: Geometric transform

5606 of 8150 branches covered (68.79%)

Branch coverage included in aggregate %.

282 of 716 new or added lines in 47 files covered. (39.39%)

318 existing lines in 23 files now uncovered.

22348 of 28864 relevant lines covered (77.43%)

72757.24 hits per line

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

58.62
/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
22
                        {
408✔
23
                                if (this.DxfClass == null)
408!
24
                                {
×
25
                                        return "UNKNOWN";
×
26
                                }
27
                                else
28
                                {
408✔
29
                                        return this.DxfClass.DxfName;
408✔
30
                                }
31
                        }
408✔
32
                }
33

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

50
                /// <summary>
51
                /// Dxf class linked to this entity.
52
                /// </summary>
53
                public DxfClass DxfClass { get; }
78,312✔
54

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

60
                public override void ApplyTransform(Transform transform)
NEW
61
                {
×
NEW
62
                        throw new NotImplementedException();
×
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