protected override void Initialize() { Nodes.Clear(); // Add methods. CodeCoveragePropertyCollection properties = new CodeCoveragePropertyCollection(); foreach (CodeCoverageMethod method in Methods) { // method name that is generated by compiler, contains "__" (double underscore) if (!method.Name.Contains("__")) { if (method.IsProperty) { properties.Add(method); } else { CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method); node.AddTo(this); } } } // Add properties.s foreach (CodeCoverageProperty property in properties) { CodeCoveragePropertyTreeNode node = new CodeCoveragePropertyTreeNode(property); node.AddTo(this); } // Sort nodes. SortChildNodes(); }
protected override void Initialize() { Nodes.Clear(); // Add methods. CodeCoveragePropertyCollection properties = new CodeCoveragePropertyCollection(); foreach (CodeCoverageMethod method in Methods) { if (method.IsProperty) { properties.Add(method); } else { CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method); node.AddTo(this); } } // Add properties.s foreach (CodeCoverageProperty property in properties) { CodeCoveragePropertyTreeNode node = new CodeCoveragePropertyTreeNode(property); node.AddTo(this); } // Sort nodes. SortChildNodes(); }
protected override void Initialize() { Nodes.Clear(); // Add methods. CodeCoveragePropertyCollection properties = new CodeCoveragePropertyCollection(); foreach (CodeCoverageMethod method in Methods) { // method name that is generated by compiler, contains "__" (double underscore) if ( !method.Name.Contains("__") ) { if (method.IsProperty) { properties.Add(method); } else { CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method); node.AddTo(this); } } } // Add properties.s foreach (CodeCoverageProperty property in properties) { CodeCoveragePropertyTreeNode node = new CodeCoveragePropertyTreeNode(property); node.AddTo(this); } // Sort nodes. SortChildNodes(); }
protected override void Initialize() { Nodes.Clear(); // Add methods. foreach (CodeCoverageMethod method in Methods) { CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method); node.AddTo(this); } }