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

DomCR / MeshIO / 21166946639

20 Jan 2026 09:50AM UTC coverage: 7.034% (-35.8%) from 42.797%
21166946639

Pull #42

github

web-flow
Merge 5d235f9a7 into 0b667ac73
Pull Request #42: Project refactor

141 of 2937 branches covered (4.8%)

Branch coverage included in aggregate %.

0 of 538 new or added lines in 21 files covered. (0.0%)

3017 existing lines in 78 files now uncovered.

727 of 9403 relevant lines covered (7.73%)

20.05 hits per line

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

0.0
/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
        {
10
                public Property this[int index] { get { return _properties.Values.ElementAt(index); } }
×
11

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>
17
                public int Count { get { return _properties.Count; } }
×
18

UNCOV
19
                public Element3D Owner { get; }
×
20

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

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

UNCOV
38
                        _properties.Add(property.Name, property);
×
39

UNCOV
40
                        property.Owner = this.Owner;
×
UNCOV
41
                }
×
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)
49
                {
×
50
                        return _properties.ContainsKey(name);
×
51
                }
×
52

53
                /// <summary>
54
                /// Remove property
55
                /// </summary>
56
                /// <param name="property"></param>
57
                /// <returns></returns>
58
                public bool Remove(Property property)
59
                {
×
60
                        return this.Remove(property.Name);
×
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)
69
                {
×
70
                        return _properties.Remove(name);
×
71
                }
×
72

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

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