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

DomCR / MeshIO / 21217318997

21 Jan 2026 04:25PM UTC coverage: 42.523% (+6.1%) from 36.402%
21217318997

Pull #43

github

web-flow
Merge 6171ee41e into df6dec2b2
Pull Request #43: Fbx refactor v6100

1296 of 2977 branches covered (43.53%)

Branch coverage included in aggregate %.

2189 of 3448 new or added lines in 81 files covered. (63.49%)

123 existing lines in 35 files now uncovered.

4010 of 9501 relevant lines covered (42.21%)

3260.9 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; }
2,528✔
20

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

23
        public PropertyCollection(Element3D owner)
306✔
24
        {
306✔
25
                Owner = owner;
306✔
26
        }
306✔
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
        {
2,528✔
35
                if (property.Owner != null)
2,528!
NEW
36
                        throw new ArgumentException("Property already has an owner", nameof(property));
×
37

38
                _properties.Add(property.Name, property);
2,528✔
39

40
                property.Owner = this.Owner;
2,528✔
41
        }
2,528✔
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
        {
32✔
76
                return _properties.Values.GetEnumerator();
32✔
77
        }
32✔
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