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

DomCR / ACadSharp / 13725521959

07 Mar 2025 05:01PM UTC coverage: 76.08% (-0.03%) from 76.11%
13725521959

push

github

DomCR
init

5468 of 7887 branches covered (69.33%)

Branch coverage included in aggregate %.

15 of 34 new or added lines in 6 files covered. (44.12%)

15 existing lines in 5 files now uncovered.

21557 of 27635 relevant lines covered (78.01%)

75800.0 hits per line

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

65.0
/src/ACadSharp/Objects/Group.cs
1
using ACadSharp.Attributes;
2
using ACadSharp.Entities;
3
using System.Collections.Generic;
4
using System.Linq;
5

6
namespace ACadSharp.Objects
7
{
8
        /// <summary>
9
        /// Represents a <see cref="Group"/> object.
10
        /// </summary>
11
        /// <remarks>
12
        /// Object name <see cref="DxfFileToken.TableGroup"/> <br/>
13
        /// Dxf class name <see cref="DxfSubclassMarker.Group"/>
14
        /// </remarks>
15
        [DxfName(DxfFileToken.TableGroup)]
16
        [DxfSubClass(DxfSubclassMarker.Group)]
17
        public class Group : NonGraphicalObject
18
        {
19
                /// <inheritdoc/>
20
                public override ObjectType ObjectType => ObjectType.GROUP;
×
21

22
                /// <inheritdoc/>
23
                public override string ObjectName => DxfFileToken.TableGroup;
×
24

25
                /// <inheritdoc/>
26
                public override string SubclassMarker => DxfSubclassMarker.Group;
×
27

28
                /// <summary>
29
                /// Group description.
30
                /// </summary>
31
                [DxfCodeValue(300)]
32
                public string Description { get; set; }
266✔
33

34
                /// <summary>
35
                /// If the group has an automatic generated name.
36
                /// </summary>
37
                [DxfCodeValue(71)]
38
                public bool IsUnnamed { get; set; }
266✔
39

40
                /// <summary>
41
                /// If the group is selectable.
42
                /// </summary>
43
                [DxfCodeValue(71)]
44
                public bool Selectable { get; set; }
266✔
45

46
                //340        Hard-pointer handle to entity in group(one entry per object)
47

48
                /// <summary>
49
                /// Entities in this group.
50
                /// </summary>
NEW
51
                public IEnumerable<Entity> Entities { get { return this._entities; } }
×
52

53
                private readonly List<Entity> _entities = new List<Entity>();
650✔
54

55
                public void Add(Entity entity)
56
                {
1,596✔
57
                        //if (this.Document is null && entity.Document is null
58
                        //        || this.Document == entity.Document)
59
                        {
1,596✔
60
                                this._entities.Add(entity);
1,596✔
61
                                entity.Reactors.Add(this.Handle, this);
1,596✔
62
                        }
1,596✔
63
                }
1,596✔
64

65
                internal override void AssignDocument(CadDocument doc)
66
                {
266✔
67
                        base.AssignDocument(doc);
266✔
68
                }
266✔
69

70
                internal override void UnassignDocument()
NEW
71
                {
×
NEW
72
                        base.UnassignDocument();
×
NEW
73
                }
×
74
        }
75
}
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