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

DomCR / MeshIO / 21215975445

21 Jan 2026 03:46PM UTC coverage: 44.404% (+8.0%) from 36.402%
21215975445

Pull #43

github

web-flow
Merge 219af7424 into df6dec2b2
Pull Request #43: Fbx refactor v6100

1358 of 2973 branches covered (45.68%)

Branch coverage included in aggregate %.

2342 of 3441 new or added lines in 81 files covered. (68.06%)

120 existing lines in 35 files now uncovered.

4177 of 9492 relevant lines covered (44.01%)

732554.71 hits per line

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

46.88
/src/MeshIO/PropertyCollection.cs
1
using System;
2
using System.Collections;
3
using System.Collections.Generic;
4
using System.Linq;
5

6
namespace MeshIO;
7

8
public class PropertyCollection : IEnumerable<Property>
9
{
NEW
10
        public Property this[int index] { get { return _properties.Values.ElementAt(index); } }
×
11

NEW
12
        public Property this[string name] { get { return _properties[name]; } }
×
13

14
        /// <summary>
15
        /// Gets the number of elements that are contained in the collection
16
        /// </summary>
NEW
17
        public int Count { get { return _properties.Count; } }
×
18

19
        public Element3D Owner { get; }
44,048✔
20

21
        private readonly Dictionary<string, Property> _properties = new Dictionary<string, Property>();
1,368✔
22

23
        public PropertyCollection(Element3D owner)
1,368✔
24
        {
1,368✔
25
                Owner = owner;
1,368✔
26
        }
1,368✔
27

28
        /// <summary>
29
        /// Add a property to the collection
30
        /// </summary>
31
        /// <param name="property"></param>
32
        /// <exception cref="ArgumentException"></exception>
33
        public void Add(Property property)
34
        {
44,048✔
35
                if (property.Owner != null)
44,048!
NEW
36
                        throw new ArgumentException("Property already has an owner", nameof(property));
×
37

38
                _properties.Add(property.Name, property);
44,048✔
39

40
                property.Owner = this.Owner;
44,048✔
41
        }
44,048✔
42

43
        /// <summary>
44
        /// Determines whether the collection contains the specified property
45
        /// </summary>
46
        /// <param name="name"></param>
47
        /// <returns></returns>
48
        public bool Contains(string name)
NEW
49
        {
×
NEW
50
                return _properties.ContainsKey(name);
×
NEW
51
        }
×
52

53
        /// <summary>
54
        /// Remove property
55
        /// </summary>
56
        /// <param name="property"></param>
57
        /// <returns></returns>
58
        public bool Remove(Property property)
NEW
59
        {
×
NEW
60
                return this.Remove(property.Name);
×
NEW
61
        }
×
62

63
        /// <summary>
64
        /// Remove a property by it's name
65
        /// </summary>
66
        /// <param name="name"></param>
67
        /// <returns></returns>
68
        public bool Remove(string name)
NEW
69
        {
×
NEW
70
                return _properties.Remove(name);
×
NEW
71
        }
×
72

73
        /// <inheritdoc/>
74
        public IEnumerator<Property> GetEnumerator()
75
        {
36✔
76
                return _properties.Values.GetEnumerator();
36✔
77
        }
36✔
78

79
        /// <inheritdoc/>
80
        IEnumerator IEnumerable.GetEnumerator()
NEW
81
        {
×
NEW
82
                return _properties.Values.GetEnumerator();
×
UNCOV
83
        }
×
84
}
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